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-30 10:54:33Z]: 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: 7aa8ce02-c83b-48a9-81bb-5c1c1f791f00 Correlation ID: 80d46ba9-b451-48bf-9604-788b48efe362 Timestamp: 2026-04-30 10:54:33Z - Correlation ID: 80d46ba9-b451-48bf-9604-788b48efe362 - Trace ID: 7aa8ce02-c83b-48a9-81bb-5c1c1f791f00
(node:3564) [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-30 10:54:33Z]: 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: 97b3abfb-8d8d-4a38-a94c-c72a42c50200 Correlation ID: c8507bac-d15f-4374-b0fd-bf31c314167c Timestamp: 2026-04-30 10:54:33Z - Correlation ID: c8507bac-d15f-4374-b0fd-bf31c314167c - Trace ID: 97b3abfb-8d8d-4a38-a94c-c72a42c50200
Error getting the secret: invalid_client: 7000222 - [2026-04-30 10:54:33Z]: 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: c3fdfdc1-dea6-44fb-a81e-bc1f92460100 Correlation ID: 993edc62-67b8-455f-a974-2b8acbbb6917 Timestamp: 2026-04-30 10:54:33Z - Correlation ID: 993edc62-67b8-455f-a974-2b8acbbb6917 - Trace ID: c3fdfdc1-dea6-44fb-a81e-bc1f92460100
Error getting the secret: invalid_client: 7000222 - [2026-04-30 10:54:33Z]: 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: 1540e9f5-6f15-4f75-80c9-02b0377e3a00 Correlation ID: 64412305-377a-4d9f-89e7-590eebffd7d3 Timestamp: 2026-04-30 10:54:33Z - Correlation ID: 64412305-377a-4d9f-89e7-590eebffd7d3 - Trace ID: 1540e9f5-6f15-4f75-80c9-02b0377e3a00
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)