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-03-03 12:46:56Z]: 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: 990767f8-8589-4536-b2d3-4ca98d652d00 Correlation ID: 853fcbcb-8adb-4971-a723-6f6e6008f7c9 Timestamp: 2026-03-03 12:46:56Z - Correlation ID: 853fcbcb-8adb-4971-a723-6f6e6008f7c9 - Trace ID: 990767f8-8589-4536-b2d3-4ca98d652d00
(node:1420) [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-03-03 12:46:57Z]: 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: 35522887-e907-4d9e-9254-92a6d2429100 Correlation ID: 19f8cd41-c34a-4b03-b386-7ed23855b281 Timestamp: 2026-03-03 12:46:57Z - Correlation ID: 19f8cd41-c34a-4b03-b386-7ed23855b281 - Trace ID: 35522887-e907-4d9e-9254-92a6d2429100
Error getting the secret: invalid_client: 7000222 - [2026-03-03 12:46:57Z]: 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: 4f9b2364-a2f1-4c9c-8d2b-77f1dc1d1e00 Correlation ID: 50564048-89ae-43da-b138-20f6c613dc89 Timestamp: 2026-03-03 12:46:57Z - Correlation ID: 50564048-89ae-43da-b138-20f6c613dc89 - Trace ID: 4f9b2364-a2f1-4c9c-8d2b-77f1dc1d1e00
Error getting the secret: invalid_client: 7000222 - [2026-03-03 12:46:57Z]: 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: 8c2e35d7-6a36-4272-b4b2-0328a41d0a00 Correlation ID: 9ad90803-242e-4f8e-8a08-d566b69fed24 Timestamp: 2026-03-03 12:46:57Z - Correlation ID: 9ad90803-242e-4f8e-8a08-d566b69fed24 - Trace ID: 8c2e35d7-6a36-4272-b4b2-0328a41d0a00
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)