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-02-24 16:16:16Z]: 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: d703cbf3-3d6d-4b37-9a66-6ece21167800 Correlation ID: bf41a8fd-fff3-419f-9a64-93c4f5a57247 Timestamp: 2026-02-24 16:16:16Z - Correlation ID: bf41a8fd-fff3-419f-9a64-93c4f5a57247 - Trace ID: d703cbf3-3d6d-4b37-9a66-6ece21167800
(node:1492) [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-02-24 16:16:17Z]: 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: ce745528-15e6-41d2-9aa5-e8f9b4f51500 Correlation ID: 0ea1ea74-b14f-4649-b62e-89a161ae8f52 Timestamp: 2026-02-24 16:16:17Z - Correlation ID: 0ea1ea74-b14f-4649-b62e-89a161ae8f52 - Trace ID: ce745528-15e6-41d2-9aa5-e8f9b4f51500
Error getting the secret: invalid_client: 7000222 - [2026-02-24 16:16:17Z]: 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: 0e96ae65-5956-4a94-9d29-386594a67300 Correlation ID: 7c545aca-95f9-4102-9cd6-1edd7111f417 Timestamp: 2026-02-24 16:16:17Z - Correlation ID: 7c545aca-95f9-4102-9cd6-1edd7111f417 - Trace ID: 0e96ae65-5956-4a94-9d29-386594a67300
Error getting the secret: invalid_client: 7000222 - [2026-02-24 16:16:17Z]: 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: b03af9ac-b379-4f37-a729-ebf4dc267a00 Correlation ID: 08042080-d489-4dbf-8b52-8d48027f5be0 Timestamp: 2026-02-24 16:16:17Z - Correlation ID: 08042080-d489-4dbf-8b52-8d48027f5be0 - Trace ID: b03af9ac-b379-4f37-a729-ebf4dc267a00
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)