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-04-16 23:58:42Z]: 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: 2f35534d-01e7-4d58-af56-6b5e23f73c00 Correlation ID: ad4e180a-e191-46b9-814b-3a73ac0822bc Timestamp: 2026-04-16 23:58:42Z - Correlation ID: ad4e180a-e191-46b9-814b-3a73ac0822bc - Trace ID: 2f35534d-01e7-4d58-af56-6b5e23f73c00
(node:1092) [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-04-16 23:58:42Z]: 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: d75c4a7f-5c8d-454b-99ff-307f38531400 Correlation ID: ed6d6ebf-39c9-4ef0-b471-afb73c08f9ac Timestamp: 2026-04-16 23:58:42Z - Correlation ID: ed6d6ebf-39c9-4ef0-b471-afb73c08f9ac - Trace ID: d75c4a7f-5c8d-454b-99ff-307f38531400
Error getting the secret: invalid_client: 7000222 - [2026-04-16 23:58:42Z]: 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: d75c4a7f-5c8d-454b-99ff-307f3c531400 Correlation ID: a3595c9d-2a10-4799-940f-1199ad743cb4 Timestamp: 2026-04-16 23:58:42Z - Correlation ID: a3595c9d-2a10-4799-940f-1199ad743cb4 - Trace ID: d75c4a7f-5c8d-454b-99ff-307f3c531400
Error getting the secret: invalid_client: 7000222 - [2026-04-16 23:58:43Z]: 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: c74f4e26-aa49-465c-94da-ed4f94253900 Correlation ID: 91728efd-e702-4a15-b6bc-c9618126289b Timestamp: 2026-04-16 23:58:43Z - Correlation ID: 91728efd-e702-4a15-b6bc-c9618126289b - Trace ID: c74f4e26-aa49-465c-94da-ed4f94253900
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)