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-03 23:13:23Z]: 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: 1f435241-505c-4bfb-9d98-23a16b5f3a00 Correlation ID: c0e8a7b1-4fdb-4456-a1a9-5bd694cbdd17 Timestamp: 2026-04-03 23:13:23Z - Correlation ID: c0e8a7b1-4fdb-4456-a1a9-5bd694cbdd17 - Trace ID: 1f435241-505c-4bfb-9d98-23a16b5f3a00
(node:2924) [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-03 23:13:24Z]: 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: a57e8c0a-c7e3-4b58-8e9a-2e6b19d61000 Correlation ID: f19ab82c-45c1-4e44-a05f-e22f0ed597d7 Timestamp: 2026-04-03 23:13:24Z - Correlation ID: f19ab82c-45c1-4e44-a05f-e22f0ed597d7 - Trace ID: a57e8c0a-c7e3-4b58-8e9a-2e6b19d61000
Error getting the secret: invalid_client: 7000222 - [2026-04-03 23:13:24Z]: 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: 520d1ec5-8ab6-4136-8ada-c2ba50311100 Correlation ID: 9a525440-7e65-4edc-99b3-923ed4e623de Timestamp: 2026-04-03 23:13:24Z - Correlation ID: 9a525440-7e65-4edc-99b3-923ed4e623de - Trace ID: 520d1ec5-8ab6-4136-8ada-c2ba50311100
Error getting the secret: invalid_client: 7000222 - [2026-04-03 23:13:24Z]: 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: 28b78fe8-8002-4dae-b29b-1eea9c623e00 Correlation ID: 1aec5d73-4cfe-4aca-91b2-ce16a0ec77e2 Timestamp: 2026-04-03 23:13:24Z - Correlation ID: 1aec5d73-4cfe-4aca-91b2-ce16a0ec77e2 - Trace ID: 28b78fe8-8002-4dae-b29b-1eea9c623e00
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)