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-24 06:19:37Z]: 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: 8836ce57-6fcf-4063-b5e5-1d96e3cc3e00 Correlation ID: 969983ed-79f0-4ccc-9b6d-f7b9c2e28d42 Timestamp: 2026-03-24 06:19:37Z - Correlation ID: 969983ed-79f0-4ccc-9b6d-f7b9c2e28d42 - Trace ID: 8836ce57-6fcf-4063-b5e5-1d96e3cc3e00
(node:3540) [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-24 06:19:37Z]: 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: c4b294cd-91ea-41d5-9785-fdfd18514300 Correlation ID: 17da0b92-3cc8-48b4-90ab-219ad67eb639 Timestamp: 2026-03-24 06:19:37Z - Correlation ID: 17da0b92-3cc8-48b4-90ab-219ad67eb639 - Trace ID: c4b294cd-91ea-41d5-9785-fdfd18514300
Error getting the secret: invalid_client: 7000222 - [2026-03-24 06:19:37Z]: 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: f425687d-4bcb-4261-9c55-2b1603cd1e00 Correlation ID: af60daae-8f4b-4559-85bd-0d40327cf369 Timestamp: 2026-03-24 06:19:37Z - Correlation ID: af60daae-8f4b-4559-85bd-0d40327cf369 - Trace ID: f425687d-4bcb-4261-9c55-2b1603cd1e00
Error getting the secret: invalid_client: 7000222 - [2026-03-24 06:19:38Z]: 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: 2b466a6e-7007-4810-b162-4cc408fb3500 Correlation ID: 56a65123-0368-4b37-9017-077885c22e56 Timestamp: 2026-03-24 06:19:38Z - Correlation ID: 56a65123-0368-4b37-9017-077885c22e56 - Trace ID: 2b466a6e-7007-4810-b162-4cc408fb3500
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)