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-05-15 09:34:28Z]: 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: 10fa353a-8ae0-4959-8744-ace9b9602000 Correlation ID: 60547085-98e0-4a18-b22a-e0b6a7ccd760 Timestamp: 2026-05-15 09:34:28Z - Correlation ID: 60547085-98e0-4a18-b22a-e0b6a7ccd760 - Trace ID: 10fa353a-8ae0-4959-8744-ace9b9602000
(node:5132) [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-05-15 09:34:28Z]: 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: 952864be-7e9b-4d11-865a-c64eccbf1c00 Correlation ID: d9fa1d60-063f-4895-a2d0-17cc0cadbd3e Timestamp: 2026-05-15 09:34:28Z - Correlation ID: d9fa1d60-063f-4895-a2d0-17cc0cadbd3e - Trace ID: 952864be-7e9b-4d11-865a-c64eccbf1c00
Error getting the secret: invalid_client: 7000222 - [2026-05-15 09:34:28Z]: 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: f7745ab5-1f21-49f1-baf0-f879e26b0700 Correlation ID: 8222ed94-0d85-441a-a493-791bae41bd7d Timestamp: 2026-05-15 09:34:28Z - Correlation ID: 8222ed94-0d85-441a-a493-791bae41bd7d - Trace ID: f7745ab5-1f21-49f1-baf0-f879e26b0700
Error getting the secret: invalid_client: 7000222 - [2026-05-15 09:34:28Z]: 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: 1e788d59-c651-466a-99bb-7e8234900000 Correlation ID: 63ddf04c-f9ac-4a1a-9ee5-f055ed60efaf Timestamp: 2026-05-15 09:34:28Z - Correlation ID: 63ddf04c-f9ac-4a1a-9ee5-f055ed60efaf - Trace ID: 1e788d59-c651-466a-99bb-7e8234900000
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)