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-02-24 07:11:53Z]: 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: 74c06292-4092-4d2a-abfb-559ddd596f00 Correlation ID: a33cdee2-a1a8-43c9-b58c-920fafaa84d0 Timestamp: 2026-02-24 07:11:53Z - Correlation ID: a33cdee2-a1a8-43c9-b58c-920fafaa84d0 - Trace ID: 74c06292-4092-4d2a-abfb-559ddd596f00
(node:832) [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-02-24 07:11:53Z]: 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: 480bb401-21ca-4449-a17c-65978d876a00 Correlation ID: 7571d063-c8b0-45a8-a0ae-ce11d7f78f40 Timestamp: 2026-02-24 07:11:53Z - Correlation ID: 7571d063-c8b0-45a8-a0ae-ce11d7f78f40 - Trace ID: 480bb401-21ca-4449-a17c-65978d876a00
Error getting the secret: invalid_client: 7000222 - [2026-02-24 07:11:54Z]: 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: 7b30a3cd-55b8-4cc5-967e-523f54ff4100 Correlation ID: cd5384c0-7817-462c-bb34-e9d49f3f0e34 Timestamp: 2026-02-24 07:11:54Z - Correlation ID: cd5384c0-7817-462c-bb34-e9d49f3f0e34 - Trace ID: 7b30a3cd-55b8-4cc5-967e-523f54ff4100
Error getting the secret: invalid_client: 7000222 - [2026-02-24 07:11:54Z]: 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: 0c98abc5-23df-48f2-9b0e-149eaec35e00 Correlation ID: c1983a01-c7d2-43b6-8553-161a90833984 Timestamp: 2026-02-24 07:11:54Z - Correlation ID: c1983a01-c7d2-43b6-8553-161a90833984 - Trace ID: 0c98abc5-23df-48f2-9b0e-149eaec35e00
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)