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-28 04:20:11Z]: 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: cf5612ca-9516-4c7f-bcac-722f6cb95100 Correlation ID: d6f00507-cdc7-491d-8d87-70d90579865c Timestamp: 2026-04-28 04:20:11Z - Correlation ID: d6f00507-cdc7-491d-8d87-70d90579865c - Trace ID: cf5612ca-9516-4c7f-bcac-722f6cb95100
(node:1200) [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-28 04:20:12Z]: 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: 9993c0a9-e465-45f6-b60a-de0e86ec4a00 Correlation ID: 0ea537c6-3ef8-4fe4-b0c2-b1de5eb25b8d Timestamp: 2026-04-28 04:20:12Z - Correlation ID: 0ea537c6-3ef8-4fe4-b0c2-b1de5eb25b8d - Trace ID: 9993c0a9-e465-45f6-b60a-de0e86ec4a00
Error getting the secret: invalid_client: 7000222 - [2026-04-28 04:20:12Z]: 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: cf5612ca-9516-4c7f-bcac-722f79b95100 Correlation ID: a142a6fe-219f-4d42-b99c-d99644aace50 Timestamp: 2026-04-28 04:20:12Z - Correlation ID: a142a6fe-219f-4d42-b99c-d99644aace50 - Trace ID: cf5612ca-9516-4c7f-bcac-722f79b95100
Error getting the secret: invalid_client: 7000222 - [2026-04-28 04:20:12Z]: 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: 8b63b76f-11ec-4a47-b302-371b0b294c00 Correlation ID: ad6e0b2e-f61c-4c20-bbd4-0dc41f6cda04 Timestamp: 2026-04-28 04:20:12Z - Correlation ID: ad6e0b2e-f61c-4c20-bbd4-0dc41f6cda04 - Trace ID: 8b63b76f-11ec-4a47-b302-371b0b294c00
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)