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-26 09:37:10Z]: 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: 9414ba23-816d-4469-8ee6-d1f377fd3200 Correlation ID: 9da5f54b-bdc5-4589-8fa2-49b661828223 Timestamp: 2026-03-26 09:37:10Z - Correlation ID: 9da5f54b-bdc5-4589-8fa2-49b661828223 - Trace ID: 9414ba23-816d-4469-8ee6-d1f377fd3200
(node:2768) [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-26 09:37: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: 2b0c5b85-d89c-4635-aee6-cb6620ac1800 Correlation ID: c1abafea-f94b-4a6a-9244-d52b9604ea6b Timestamp: 2026-03-26 09:37:11Z - Correlation ID: c1abafea-f94b-4a6a-9244-d52b9604ea6b - Trace ID: 2b0c5b85-d89c-4635-aee6-cb6620ac1800
Error getting the secret: invalid_client: 7000222 - [2026-03-26 09:37: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: 026cb334-3a3d-456a-89b9-6c722e620b00 Correlation ID: 3a3dffd5-124f-4889-9a79-4a5387cfecdc Timestamp: 2026-03-26 09:37:11Z - Correlation ID: 3a3dffd5-124f-4889-9a79-4a5387cfecdc - Trace ID: 026cb334-3a3d-456a-89b9-6c722e620b00
Error getting the secret: invalid_client: 7000222 - [2026-03-26 09:37: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: d41a7194-836f-4d8d-a4a4-f8f22ee61b00 Correlation ID: b7d54996-ac66-4518-8827-56223f023f78 Timestamp: 2026-03-26 09:37:11Z - Correlation ID: b7d54996-ac66-4518-8827-56223f023f78 - Trace ID: d41a7194-836f-4d8d-a4a4-f8f22ee61b00
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)