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-19 13:15: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: fba488e4-7c14-4acb-8f40-cedcc1671700 Correlation ID: cb0d7f56-0a57-4998-8e70-f70e9ac4400e Timestamp: 2026-04-19 13:15:40Z - Correlation ID: cb0d7f56-0a57-4998-8e70-f70e9ac4400e - Trace ID: fba488e4-7c14-4acb-8f40-cedcc1671700
(node:5360) [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-19 13:15: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: 2db0ace1-fa4f-42fa-b048-e4c033ca3b00 Correlation ID: a79fc3c7-4c19-4dff-99e8-f060f823fbe4 Timestamp: 2026-04-19 13:15:40Z - Correlation ID: a79fc3c7-4c19-4dff-99e8-f060f823fbe4 - Trace ID: 2db0ace1-fa4f-42fa-b048-e4c033ca3b00
Error getting the secret: invalid_client: 7000222 - [2026-04-19 13:15: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: e535751a-70ce-4bf5-9d3c-7aebe4882d00 Correlation ID: 58b9a7f6-2a4f-42a3-a52c-99c5e3d888d5 Timestamp: 2026-04-19 13:15:40Z - Correlation ID: 58b9a7f6-2a4f-42a3-a52c-99c5e3d888d5 - Trace ID: e535751a-70ce-4bf5-9d3c-7aebe4882d00
Error getting the secret: invalid_client: 7000222 - [2026-04-19 13:15: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: 26a9d881-5d8f-4bf8-985f-c7d5df5a0000 Correlation ID: 4ad11ca9-213c-4b63-87ce-8363e0c4034f Timestamp: 2026-04-19 13:15:40Z - Correlation ID: 4ad11ca9-213c-4b63-87ce-8363e0c4034f - Trace ID: 26a9d881-5d8f-4bf8-985f-c7d5df5a0000
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)