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 23:35: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: f1cc87d5-c834-473e-95ef-ae8f33268800 Correlation ID: 0b14a9a9-2e35-420d-8b2e-e849075d2835 Timestamp: 2026-02-24 23:35:11Z - Correlation ID: 0b14a9a9-2e35-420d-8b2e-e849075d2835 - Trace ID: f1cc87d5-c834-473e-95ef-ae8f33268800
(node:2900) [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 23:35: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: 58418caa-f4c4-482e-8b9c-a79f120d1d00 Correlation ID: ebbac7dd-8be0-4c6d-bcb2-b793da1c1c42 Timestamp: 2026-02-24 23:35:12Z - Correlation ID: ebbac7dd-8be0-4c6d-bcb2-b793da1c1c42 - Trace ID: 58418caa-f4c4-482e-8b9c-a79f120d1d00
Error getting the secret: invalid_client: 7000222 - [2026-02-24 23:35: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: c0c5c9c1-f0d2-4c12-8efa-ff5edd127e00 Correlation ID: 644e62a0-6081-4f8a-b0d7-2f3e3af3a1c3 Timestamp: 2026-02-24 23:35:12Z - Correlation ID: 644e62a0-6081-4f8a-b0d7-2f3e3af3a1c3 - Trace ID: c0c5c9c1-f0d2-4c12-8efa-ff5edd127e00
Error getting the secret: invalid_client: 7000222 - [2026-02-24 23:35: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: f1cc87d5-c834-473e-95ef-ae8f42268800 Correlation ID: 1ec07e09-4e7d-47f8-8768-fb2abe6723c6 Timestamp: 2026-02-24 23:35:12Z - Correlation ID: 1ec07e09-4e7d-47f8-8768-fb2abe6723c6 - Trace ID: f1cc87d5-c834-473e-95ef-ae8f42268800
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)