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-27 19:21:54Z]: 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: 53b066fa-9869-4c6b-b1e3-1f5044fb6b00 Correlation ID: f2490908-0944-4ef1-8b4a-872f2979f41e Timestamp: 2026-04-27 19:21:54Z - Correlation ID: f2490908-0944-4ef1-8b4a-872f2979f41e - Trace ID: 53b066fa-9869-4c6b-b1e3-1f5044fb6b00
(node:4660) [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-27 19:21:54Z]: 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: 196a2041-026d-4591-816a-d76f56cd0800 Correlation ID: a101a270-5763-4b6c-ae0b-04840c80d216 Timestamp: 2026-04-27 19:21:54Z - Correlation ID: a101a270-5763-4b6c-ae0b-04840c80d216 - Trace ID: 196a2041-026d-4591-816a-d76f56cd0800
Error getting the secret: invalid_client: 7000222 - [2026-04-27 19:21: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: 5079f56f-fc4e-45ac-bf9a-e68b53775400 Correlation ID: 0af72287-6b4e-44a3-99b3-1275b7d3fa91 Timestamp: 2026-04-27 19:21:55Z - Correlation ID: 0af72287-6b4e-44a3-99b3-1275b7d3fa91 - Trace ID: 5079f56f-fc4e-45ac-bf9a-e68b53775400
Error getting the secret: invalid_client: 7000222 - [2026-04-27 19:21: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: 1f57ab57-7e5c-4496-a2be-4c55d8024800 Correlation ID: 9e48bf5a-3748-4b94-84a9-07c263fbb0b8 Timestamp: 2026-04-27 19:21:55Z - Correlation ID: 9e48bf5a-3748-4b94-84a9-07c263fbb0b8 - Trace ID: 1f57ab57-7e5c-4496-a2be-4c55d8024800
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)