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-07 19:51: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: 14600705-d228-49c4-978f-2dc47cec1d00 Correlation ID: c0626668-0e53-4abe-ab24-93ad5eb9a6f9 Timestamp: 2026-04-07 19:51:56Z - Correlation ID: c0626668-0e53-4abe-ab24-93ad5eb9a6f9 - Trace ID: 14600705-d228-49c4-978f-2dc47cec1d00
(node:4844) [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-07 19:51: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: e00add15-8ff1-473b-a097-7b4ef2e31f00 Correlation ID: 388ace4c-c508-438f-923a-99c897734827 Timestamp: 2026-04-07 19:51:56Z - Correlation ID: 388ace4c-c508-438f-923a-99c897734827 - Trace ID: e00add15-8ff1-473b-a097-7b4ef2e31f00
Error getting the secret: invalid_client: 7000222 - [2026-04-07 19:51: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: 5d3a4615-3e7e-4814-b5e3-6d88ca1e1f00 Correlation ID: c3720225-1ee7-4559-8240-aca08a8ffcf0 Timestamp: 2026-04-07 19:51:57Z - Correlation ID: c3720225-1ee7-4559-8240-aca08a8ffcf0 - Trace ID: 5d3a4615-3e7e-4814-b5e3-6d88ca1e1f00
Error getting the secret: invalid_client: 7000222 - [2026-04-07 19:51: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: e00add15-8ff1-473b-a097-7b4ef7e31f00 Correlation ID: 92003103-95e2-43d4-a9dd-f40a0f14f116 Timestamp: 2026-04-07 19:51:57Z - Correlation ID: 92003103-95e2-43d4-a9dd-f40a0f14f116 - Trace ID: e00add15-8ff1-473b-a097-7b4ef7e31f00
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)