iisnode encountered an error when processing the request.
HRESULT: 0x2 HTTP status: 500 HTTP subStatus: 1002 HTTP reason: Internal Server Error
You are receiving this HTTP 200 response because system.webServer/iisnode/@devErrorsEnabled configuration setting is 'true'.
In addition to the log of stdout and stderr of the node.exe process, consider using debugging and ETW traces to further diagnose the problem.
The last 64k of the output generated by the node.exe process to stderr is shown below:
Error getting the secret: invalid_client: 7000222 - [2026-02-25 07:16:13Z]: AADSTS7000222: The provided client secret keys for app '1a3f705e-321b-477c-a2a9-dd6e240f8c1e' are expired. Visit the Azure portal to create new keys for your app: https://aka.ms/NewClientSecret, or consider using certificate credentials for added security: https://aka.ms/certCreds. Trace ID: b3612db7-a7d8-4d58-8413-011dcc052200 Correlation ID: 29f07fda-d8c2-413c-8c5d-9b64f34f4cbd Timestamp: 2026-02-25 07:16:13Z - Correlation ID: 29f07fda-d8c2-413c-8c5d-9b64f34f4cbd - Trace ID: b3612db7-a7d8-4d58-8413-011dcc052200
(node:5824) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
Error getting the secret: invalid_client: 7000222 - [2026-02-25 07:16:13Z]: AADSTS7000222: The provided client secret keys for app '1a3f705e-321b-477c-a2a9-dd6e240f8c1e' are expired. Visit the Azure portal to create new keys for your app: https://aka.ms/NewClientSecret, or consider using certificate credentials for added security: https://aka.ms/certCreds. Trace ID: 47454156-ba67-4f76-8cf2-e252b8968d00 Correlation ID: fe3f9555-c5a3-4d3d-b238-514973b15e99 Timestamp: 2026-02-25 07:16:13Z - Correlation ID: fe3f9555-c5a3-4d3d-b238-514973b15e99 - Trace ID: 47454156-ba67-4f76-8cf2-e252b8968d00
Error getting the secret: invalid_client: 7000222 - [2026-02-25 07:16:13Z]: AADSTS7000222: The provided client secret keys for app '1a3f705e-321b-477c-a2a9-dd6e240f8c1e' are expired. Visit the Azure portal to create new keys for your app: https://aka.ms/NewClientSecret, or consider using certificate credentials for added security: https://aka.ms/certCreds. Trace ID: 47454156-ba67-4f76-8cf2-e252bb968d00 Correlation ID: c02f8b89-7e88-4a5e-be91-29774a94fabc Timestamp: 2026-02-25 07:16:13Z - Correlation ID: c02f8b89-7e88-4a5e-be91-29774a94fabc - Trace ID: 47454156-ba67-4f76-8cf2-e252bb968d00
Error getting the secret: invalid_client: 7000222 - [2026-02-25 07:16:13Z]: AADSTS7000222: The provided client secret keys for app '1a3f705e-321b-477c-a2a9-dd6e240f8c1e' are expired. Visit the Azure portal to create new keys for your app: https://aka.ms/NewClientSecret, or consider using certificate credentials for added security: https://aka.ms/certCreds. Trace ID: 8c35e0c8-4a5f-48a9-ac5e-f3fdb24c8900 Correlation ID: 11f1de91-40bc-4e80-a9c0-db9b1f09b014 Timestamp: 2026-02-25 07:16:13Z - Correlation ID: 11f1de91-40bc-4e80-a9c0-db9b1f09b014 - Trace ID: 8c35e0c8-4a5f-48a9-ac5e-f3fdb24c8900
Application has thrown an uncaught exception and is terminated:
TypeError: Cannot read properties of undefined (reading 'cosdb')
at C:\stop_order_dev\server.js:25:30
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)