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-01-04 16:01:36Z]: 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: 0dd20695-ec7c-4a0b-880a-1e3403bb5b01 Correlation ID: 549381ad-1b6a-4adc-9f54-f1b9d7c8990c Timestamp: 2026-01-04 16:01:36Z - Correlation ID: 549381ad-1b6a-4adc-9f54-f1b9d7c8990c - Trace ID: 0dd20695-ec7c-4a0b-880a-1e3403bb5b01
(node:1128) [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-01-04 16:01:36Z]: 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: 94365d81-513d-4de2-b6e0-6078fbb66f00 Correlation ID: ef450535-99e4-4645-bf5d-af1c39627161 Timestamp: 2026-01-04 16:01:36Z - Correlation ID: ef450535-99e4-4645-bf5d-af1c39627161 - Trace ID: 94365d81-513d-4de2-b6e0-6078fbb66f00
Error getting the secret: invalid_client: 7000222 - [2026-01-04 16:01:36Z]: 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: 0dd20695-ec7c-4a0b-880a-1e3409bb5b01 Correlation ID: cdd8f851-8c24-4da9-bf1b-0271fca19d39 Timestamp: 2026-01-04 16:01:36Z - Correlation ID: cdd8f851-8c24-4da9-bf1b-0271fca19d39 - Trace ID: 0dd20695-ec7c-4a0b-880a-1e3409bb5b01
Error getting the secret: invalid_client: 7000222 - [2026-01-04 16:01:36Z]: 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: 170ff470-5b82-4ce0-adfa-7dd073978601 Correlation ID: be81120d-bf6d-48a0-95c4-1c0f24cff1a1 Timestamp: 2026-01-04 16:01:36Z - Correlation ID: be81120d-bf6d-48a0-95c4-1c0f24cff1a1 - Trace ID: 170ff470-5b82-4ce0-adfa-7dd073978601
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)