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-03-21 16:30:41Z]: 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: 49a7d6a0-df3b-4f0f-bc9b-c45478ca2400 Correlation ID: abceedfa-acc3-4bc0-8c37-c26a95537612 Timestamp: 2026-03-21 16:30:41Z - Correlation ID: abceedfa-acc3-4bc0-8c37-c26a95537612 - Trace ID: 49a7d6a0-df3b-4f0f-bc9b-c45478ca2400
(node:4448) [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-03-21 16:30:41Z]: 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: fc90d47a-b61a-4998-8d01-0a3f84da0c00 Correlation ID: 2d33e497-61f8-4989-93e3-02affa0b40e0 Timestamp: 2026-03-21 16:30:41Z - Correlation ID: 2d33e497-61f8-4989-93e3-02affa0b40e0 - Trace ID: fc90d47a-b61a-4998-8d01-0a3f84da0c00
Error getting the secret: invalid_client: 7000222 - [2026-03-21 16:30:41Z]: 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: db398368-509b-4ac1-b365-d05e55610a00 Correlation ID: 595d6d74-2a1d-4f4a-9b1e-f674f3abab83 Timestamp: 2026-03-21 16:30:41Z - Correlation ID: 595d6d74-2a1d-4f4a-9b1e-f674f3abab83 - Trace ID: db398368-509b-4ac1-b365-d05e55610a00
Error getting the secret: invalid_client: 7000222 - [2026-03-21 16:30:41Z]: 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: 91aa044e-a2e2-48ee-a102-43decf4e0b00 Correlation ID: 6dc99244-8795-4da8-ae62-5a2b93304ee7 Timestamp: 2026-03-21 16:30:41Z - Correlation ID: 6dc99244-8795-4da8-ae62-5a2b93304ee7 - Trace ID: 91aa044e-a2e2-48ee-a102-43decf4e0b00
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)