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-25 08:07:39Z]: 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: f17d3e80-a585-483c-be17-0a967e2a8700 Correlation ID: d9c8c1e5-0132-4f78-8926-441bda57f7f1 Timestamp: 2026-02-25 08:07:39Z - Correlation ID: d9c8c1e5-0132-4f78-8926-441bda57f7f1 - Trace ID: f17d3e80-a585-483c-be17-0a967e2a8700
(node:2568) [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-25 08:07:40Z]: 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: 4f111272-691c-4942-8c44-36eab5738b00 Correlation ID: 0893a0b7-38e9-4960-80a5-7da4680c8114 Timestamp: 2026-02-25 08:07:40Z - Correlation ID: 0893a0b7-38e9-4960-80a5-7da4680c8114 - Trace ID: 4f111272-691c-4942-8c44-36eab5738b00
Error getting the secret: invalid_client: 7000222 - [2026-02-25 08:07:40Z]: 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: 9c1e939d-65fb-4e9a-99a1-bc3fb7960000 Correlation ID: 5c9fa463-85a7-44fb-8c08-3097972edf61 Timestamp: 2026-02-25 08:07:40Z - Correlation ID: 5c9fa463-85a7-44fb-8c08-3097972edf61 - Trace ID: 9c1e939d-65fb-4e9a-99a1-bc3fb7960000
Error getting the secret: invalid_client: 7000222 - [2026-02-25 08:07:40Z]: 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: ae11e1c6-9513-452e-8a22-fb69b2f08800 Correlation ID: 77228ef5-f7c9-48ef-ae91-ea5fe2f52721 Timestamp: 2026-02-25 08:07:40Z - Correlation ID: 77228ef5-f7c9-48ef-ae91-ea5fe2f52721 - Trace ID: ae11e1c6-9513-452e-8a22-fb69b2f08800
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)