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-15 14:10:15Z]: 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: a31bd820-c450-48cd-a184-21b28deb0b00 Correlation ID: 81a2760c-6c50-4399-a1f9-cceb546563f6 Timestamp: 2026-04-15 14:10:15Z - Correlation ID: 81a2760c-6c50-4399-a1f9-cceb546563f6 - Trace ID: a31bd820-c450-48cd-a184-21b28deb0b00
(node:2728) [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-15 14:10:15Z]: 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: af3c197f-9c4f-454f-835c-50cdbfe99c00 Correlation ID: 8ec6f206-e5b6-4aa6-aa2f-143b47f5366b Timestamp: 2026-04-15 14:10:15Z - Correlation ID: 8ec6f206-e5b6-4aa6-aa2f-143b47f5366b - Trace ID: af3c197f-9c4f-454f-835c-50cdbfe99c00
Error getting the secret: invalid_client: 7000222 - [2026-04-15 14:10:15Z]: 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: 813c190e-5bc6-4214-b2e3-1a0b835f2c00 Correlation ID: cda41613-f3fb-4e12-8a55-ed25a607a66d Timestamp: 2026-04-15 14:10:15Z - Correlation ID: cda41613-f3fb-4e12-8a55-ed25a607a66d - Trace ID: 813c190e-5bc6-4214-b2e3-1a0b835f2c00
Error getting the secret: invalid_client: 7000222 - [2026-04-15 14:10:16Z]: 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: 859a09ba-f3de-4288-ae9b-8c6e0d900500 Correlation ID: b6407029-4e83-40e8-9e60-4fe09c247a91 Timestamp: 2026-04-15 14:10:16Z - Correlation ID: b6407029-4e83-40e8-9e60-4fe09c247a91 - Trace ID: 859a09ba-f3de-4288-ae9b-8c6e0d900500
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)