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-05-17 01:29:48Z]: 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: 90528673-b151-4954-ac08-026abbd82300 Correlation ID: 631cc475-586a-44d8-b13a-88324badfc94 Timestamp: 2026-05-17 01:29:48Z - Correlation ID: 631cc475-586a-44d8-b13a-88324badfc94 - Trace ID: 90528673-b151-4954-ac08-026abbd82300
(node:6620) [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-05-17 01:29:48Z]: 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: a72af37e-1d22-4975-9931-8464340f0300 Correlation ID: 1362657a-3952-4eeb-8d06-82e9190b4ba2 Timestamp: 2026-05-17 01:29:48Z - Correlation ID: 1362657a-3952-4eeb-8d06-82e9190b4ba2 - Trace ID: a72af37e-1d22-4975-9931-8464340f0300
Error getting the secret: invalid_client: 7000222 - [2026-05-17 01:29:49Z]: 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: 500442c9-3439-46fd-bb73-1c37b1970b00 Correlation ID: e40313de-2516-485f-b4d3-4babc1f0e63f Timestamp: 2026-05-17 01:29:49Z - Correlation ID: e40313de-2516-485f-b4d3-4babc1f0e63f - Trace ID: 500442c9-3439-46fd-bb73-1c37b1970b00
Error getting the secret: invalid_client: 7000222 - [2026-05-17 01:29:49Z]: 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: 278a3ccf-89e2-4b15-af6d-09fe020b0d00 Correlation ID: fd96cd4f-a1ec-4a75-acb6-cb09ef79b7f0 Timestamp: 2026-05-17 01:29:49Z - Correlation ID: fd96cd4f-a1ec-4a75-acb6-cb09ef79b7f0 - Trace ID: 278a3ccf-89e2-4b15-af6d-09fe020b0d00
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)