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-04 17:15:55Z]: 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: 2d9df374-c0fa-42c0-b20d-635dfcbaa900 Correlation ID: ad2134f8-b664-44e3-aaa1-f41d805b69a0 Timestamp: 2026-03-04 17:15:55Z - Correlation ID: ad2134f8-b664-44e3-aaa1-f41d805b69a0 - Trace ID: 2d9df374-c0fa-42c0-b20d-635dfcbaa900
(node:2676) [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-04 17:15: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: 2d9df374-c0fa-42c0-b20d-635d05bba900 Correlation ID: a635a756-cc8b-4c22-96b6-4e12798100a2 Timestamp: 2026-03-04 17:15:56Z - Correlation ID: a635a756-cc8b-4c22-96b6-4e12798100a2 - Trace ID: 2d9df374-c0fa-42c0-b20d-635d05bba900
Error getting the secret: invalid_client: 7000222 - [2026-03-04 17:15: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: 5a75c873-de9e-4c24-8dd5-6e839c300f00 Correlation ID: 04798119-352a-49f2-8583-611c718c3167 Timestamp: 2026-03-04 17:15:56Z - Correlation ID: 04798119-352a-49f2-8583-611c718c3167 - Trace ID: 5a75c873-de9e-4c24-8dd5-6e839c300f00
Error getting the secret: invalid_client: 7000222 - [2026-03-04 17:15: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: 1dc7e594-5b35-4a54-9d2a-b6c7a0040800 Correlation ID: 69534d92-0d11-4b69-beee-3903e8ead79d Timestamp: 2026-03-04 17:15:56Z - Correlation ID: 69534d92-0d11-4b69-beee-3903e8ead79d - Trace ID: 1dc7e594-5b35-4a54-9d2a-b6c7a0040800
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)