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-02 23:43:17Z]: 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: 532884fd-a5c7-46ad-911f-7d8ed24c2000 Correlation ID: 39a88e5a-1bb1-4f12-bb23-9674bc7e66e3 Timestamp: 2026-04-02 23:43:17Z - Correlation ID: 39a88e5a-1bb1-4f12-bb23-9674bc7e66e3 - Trace ID: 532884fd-a5c7-46ad-911f-7d8ed24c2000
(node:3052) [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-02 23:43:17Z]: 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: d59d25ba-87b2-4848-98f7-b2c404702200 Correlation ID: 1e8bcf27-f3f8-4cae-9de7-c81e3b7e28d5 Timestamp: 2026-04-02 23:43:17Z - Correlation ID: 1e8bcf27-f3f8-4cae-9de7-c81e3b7e28d5 - Trace ID: d59d25ba-87b2-4848-98f7-b2c404702200
Error getting the secret: invalid_client: 7000222 - [2026-04-02 23:43:18Z]: 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: 8e2697fe-3df5-473d-ab56-134d25432300 Correlation ID: b595ff64-d56b-42d1-aed9-5db34f83041b Timestamp: 2026-04-02 23:43:18Z - Correlation ID: b595ff64-d56b-42d1-aed9-5db34f83041b - Trace ID: 8e2697fe-3df5-473d-ab56-134d25432300
Error getting the secret: invalid_client: 7000222 - [2026-04-02 23:43:18Z]: 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: 8e2697fe-3df5-473d-ab56-134d29432300 Correlation ID: 0d63f60e-b1ea-4a62-a4dd-301e9a29fc8f Timestamp: 2026-04-02 23:43:18Z - Correlation ID: 0d63f60e-b1ea-4a62-a4dd-301e9a29fc8f - Trace ID: 8e2697fe-3df5-473d-ab56-134d29432300
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)