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-03-24 12:42:51Z]: 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: a62a90ef-6ae6-4fb3-b241-fb79a7294200 Correlation ID: 2b67ec7a-4cbc-4551-be0c-ec9ab1b11a35 Timestamp: 2026-03-24 12:42:51Z - Correlation ID: 2b67ec7a-4cbc-4551-be0c-ec9ab1b11a35 - Trace ID: a62a90ef-6ae6-4fb3-b241-fb79a7294200
(node:1064) [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-03-24 12:42:51Z]: 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: abd9b636-0892-4665-9359-8f51877f4700 Correlation ID: 54133a63-b529-48e4-9619-850d60f150ac Timestamp: 2026-03-24 12:42:51Z - Correlation ID: 54133a63-b529-48e4-9619-850d60f150ac - Trace ID: abd9b636-0892-4665-9359-8f51877f4700
Error getting the secret: invalid_client: 7000222 - [2026-03-24 12:42:51Z]: 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: 267361da-8c46-4863-b705-df83a78c4400 Correlation ID: 11d11dda-1464-4cba-aed3-16c7290b1ea2 Timestamp: 2026-03-24 12:42:51Z - Correlation ID: 11d11dda-1464-4cba-aed3-16c7290b1ea2 - Trace ID: 267361da-8c46-4863-b705-df83a78c4400
Error getting the secret: invalid_client: 7000222 - [2026-03-24 12:42:51Z]: 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: abd9b636-0892-4665-9359-8f51947f4700 Correlation ID: 2bd48269-5c50-4905-bb35-e4b5a250d353 Timestamp: 2026-03-24 12:42:51Z - Correlation ID: 2bd48269-5c50-4905-bb35-e4b5a250d353 - Trace ID: abd9b636-0892-4665-9359-8f51947f4700
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)