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 04:57:59Z]: 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: 734c1415-ead7-4af8-854f-b487ae6c1500 Correlation ID: 216a84da-25c0-4de5-a621-2832113c71ec Timestamp: 2026-04-02 04:57:59Z - Correlation ID: 216a84da-25c0-4de5-a621-2832113c71ec - Trace ID: 734c1415-ead7-4af8-854f-b487ae6c1500
(node:4080) [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 04:57:59Z]: 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: 127577fe-5925-4235-86aa-60b2ad550f00 Correlation ID: 4d7fee15-3332-405e-b2b5-7e39e7ab9d4c Timestamp: 2026-04-02 04:57:59Z - Correlation ID: 4d7fee15-3332-405e-b2b5-7e39e7ab9d4c - Trace ID: 127577fe-5925-4235-86aa-60b2ad550f00
Error getting the secret: invalid_client: 7000222 - [2026-04-02 04:57:59Z]: 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: be91ce4e-3ec7-4c98-9105-890b602a0400 Correlation ID: f85e4f7d-7d74-486a-981e-e2902d5bfb97 Timestamp: 2026-04-02 04:57:59Z - Correlation ID: f85e4f7d-7d74-486a-981e-e2902d5bfb97 - Trace ID: be91ce4e-3ec7-4c98-9105-890b602a0400
Error getting the secret: invalid_client: 7000222 - [2026-04-02 04:57:59Z]: 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: 194e7fb3-7e81-4b99-ba14-f94ab3ad0100 Correlation ID: 808171bb-0584-41dc-bdb7-bbeab68ccb01 Timestamp: 2026-04-02 04:57:59Z - Correlation ID: 808171bb-0584-41dc-bdb7-bbeab68ccb01 - Trace ID: 194e7fb3-7e81-4b99-ba14-f94ab3ad0100
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)