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-24 18:24:36Z]: 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: f33fd83d-5cfe-4700-8590-b1d3350b0200 Correlation ID: 036b6f15-0f46-468e-b744-b9ac2c389705 Timestamp: 2026-04-24 18:24:36Z - Correlation ID: 036b6f15-0f46-468e-b744-b9ac2c389705 - Trace ID: f33fd83d-5cfe-4700-8590-b1d3350b0200
(node:5720) [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-24 18:24:36Z]: 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: afce1ae7-a95f-4cc2-8cd4-dff5493c9c00 Correlation ID: b5ec8b7d-6e42-4194-b4a8-d07158905175 Timestamp: 2026-04-24 18:24:36Z - Correlation ID: b5ec8b7d-6e42-4194-b4a8-d07158905175 - Trace ID: afce1ae7-a95f-4cc2-8cd4-dff5493c9c00
Error getting the secret: invalid_client: 7000222 - [2026-04-24 18:24: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: 03c9710e-f8db-4a99-b669-dd2093ae2b00 Correlation ID: 2e45b7e6-31cd-42a6-8282-243b4068f13d Timestamp: 2026-04-24 18:24:37Z - Correlation ID: 2e45b7e6-31cd-42a6-8282-243b4068f13d - Trace ID: 03c9710e-f8db-4a99-b669-dd2093ae2b00
Error getting the secret: invalid_client: 7000222 - [2026-04-24 18:24: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: 8ac0d45d-54d7-46f5-8023-0d4653750c00 Correlation ID: cc772f2d-e2ef-4316-bb4a-9579fca36fee Timestamp: 2026-04-24 18:24:37Z - Correlation ID: cc772f2d-e2ef-4316-bb4a-9579fca36fee - Trace ID: 8ac0d45d-54d7-46f5-8023-0d4653750c00
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)