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-20 06:16:33Z]: 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: 5d02fa6f-3917-452a-8435-1a13e2d70600 Correlation ID: 8543607b-1e77-43b0-9e57-b19bdf253cf2 Timestamp: 2026-04-20 06:16:33Z - Correlation ID: 8543607b-1e77-43b0-9e57-b19bdf253cf2 - Trace ID: 5d02fa6f-3917-452a-8435-1a13e2d70600
(node:5916) [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-20 06:16:34Z]: 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: 5531ec11-7b3a-44ca-8a45-0834109f0500 Correlation ID: 7ab1afa9-7e73-4112-b436-7a2cc1416b8d Timestamp: 2026-04-20 06:16:34Z - Correlation ID: 7ab1afa9-7e73-4112-b436-7a2cc1416b8d - Trace ID: 5531ec11-7b3a-44ca-8a45-0834109f0500
Error getting the secret: invalid_client: 7000222 - [2026-04-20 06:16:34Z]: 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: 24f30673-134c-499e-8d30-6381cd960900 Correlation ID: 6f87eca2-1fcd-437d-8a60-16e494bb633a Timestamp: 2026-04-20 06:16:34Z - Correlation ID: 6f87eca2-1fcd-437d-8a60-16e494bb633a - Trace ID: 24f30673-134c-499e-8d30-6381cd960900
Error getting the secret: invalid_client: 7000222 - [2026-04-20 06:16:34Z]: 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: 5531ec11-7b3a-44ca-8a45-0834169f0500 Correlation ID: 5c9a07a3-ec1a-4a48-9bfc-f0eb9c3823d2 Timestamp: 2026-04-20 06:16:34Z - Correlation ID: 5c9a07a3-ec1a-4a48-9bfc-f0eb9c3823d2 - Trace ID: 5531ec11-7b3a-44ca-8a45-0834169f0500
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)