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-23 18:12:40Z]: 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: 38a71daf-3ef7-4a95-9d0b-201c115c3600 Correlation ID: f509fe90-d8a3-4eb8-a6cb-272eaf43628a Timestamp: 2026-03-23 18:12:40Z - Correlation ID: f509fe90-d8a3-4eb8-a6cb-272eaf43628a - Trace ID: 38a71daf-3ef7-4a95-9d0b-201c115c3600
(node:4784) [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-23 18:12:41Z]: 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: 53d9bb03-22dc-4c8f-8c96-3b24a2063500 Correlation ID: b7ca27a6-ff24-48fa-b5aa-61c89ab20cfd Timestamp: 2026-03-23 18:12:41Z - Correlation ID: b7ca27a6-ff24-48fa-b5aa-61c89ab20cfd - Trace ID: 53d9bb03-22dc-4c8f-8c96-3b24a2063500
Error getting the secret: invalid_client: 7000222 - [2026-03-23 18:12:41Z]: 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: 6932fddd-491a-4c22-af08-1928db1a3200 Correlation ID: 8278be88-502c-479c-93ed-456cdc5058f6 Timestamp: 2026-03-23 18:12:41Z - Correlation ID: 8278be88-502c-479c-93ed-456cdc5058f6 - Trace ID: 6932fddd-491a-4c22-af08-1928db1a3200
Error getting the secret: invalid_client: 7000222 - [2026-03-23 18:12:41Z]: 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: 921fc56e-aa7a-430f-9e3f-32350ec83700 Correlation ID: 55f0e2de-0f37-4748-b562-1004c3abe8f0 Timestamp: 2026-03-23 18:12:41Z - Correlation ID: 55f0e2de-0f37-4748-b562-1004c3abe8f0 - Trace ID: 921fc56e-aa7a-430f-9e3f-32350ec83700
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)