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-02 17:15:20Z]: 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: 5b44f09b-b222-4dd3-a6e0-8c53fbf02100 Correlation ID: 355bdc41-4fd3-41fe-98e4-4f96322f42e2 Timestamp: 2026-04-02 17:15:20Z - Correlation ID: 355bdc41-4fd3-41fe-98e4-4f96322f42e2 - Trace ID: 5b44f09b-b222-4dd3-a6e0-8c53fbf02100
(node:2464) [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-02 17:15:21Z]: 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: ec8c2ab1-d324-4bb1-8e14-3877c1ae2800 Correlation ID: 09720113-2d47-4210-94ad-f254d1d49488 Timestamp: 2026-04-02 17:15:21Z - Correlation ID: 09720113-2d47-4210-94ad-f254d1d49488 - Trace ID: ec8c2ab1-d324-4bb1-8e14-3877c1ae2800
Error getting the secret: invalid_client: 7000222 - [2026-04-02 17:15:21Z]: 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: 0cfd6054-1aec-4a5a-bbe8-5f59c3fc0500 Correlation ID: 3f5be392-1b5e-4c83-b1bd-e6b2761a8847 Timestamp: 2026-04-02 17:15:21Z - Correlation ID: 3f5be392-1b5e-4c83-b1bd-e6b2761a8847 - Trace ID: 0cfd6054-1aec-4a5a-bbe8-5f59c3fc0500
Error getting the secret: invalid_client: 7000222 - [2026-04-02 17:15:21Z]: 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: 91aa273c-e208-429d-9d88-a386bcc50400 Correlation ID: e3d0a554-d6c6-4d29-8473-208643ce9e9e Timestamp: 2026-04-02 17:15:21Z - Correlation ID: e3d0a554-d6c6-4d29-8473-208643ce9e9e - Trace ID: 91aa273c-e208-429d-9d88-a386bcc50400
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)