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-18 23:12:57Z]: 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: 874a3fb2-12b2-482b-8b80-ce9fe1680b00 Correlation ID: 2adfe625-4027-4c5f-a337-f4f76afb2c70 Timestamp: 2026-04-18 23:12:57Z - Correlation ID: 2adfe625-4027-4c5f-a337-f4f76afb2c70 - Trace ID: 874a3fb2-12b2-482b-8b80-ce9fe1680b00
(node:5284) [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-18 23:12:57Z]: 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: 95ed724e-e0b8-467d-8c10-b23bee1f1f00 Correlation ID: 9c111b60-8d99-477e-a6c2-703c071ff4d3 Timestamp: 2026-04-18 23:12:57Z - Correlation ID: 9c111b60-8d99-477e-a6c2-703c071ff4d3 - Trace ID: 95ed724e-e0b8-467d-8c10-b23bee1f1f00
Error getting the secret: invalid_client: 7000222 - [2026-04-18 23:12:57Z]: 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: 874a3fb2-12b2-482b-8b80-ce9fe9680b00 Correlation ID: 5189f9a2-a26b-4aed-a89a-28b99f5e4930 Timestamp: 2026-04-18 23:12:57Z - Correlation ID: 5189f9a2-a26b-4aed-a89a-28b99f5e4930 - Trace ID: 874a3fb2-12b2-482b-8b80-ce9fe9680b00
Error getting the secret: invalid_client: 7000222 - [2026-04-18 23:12:57Z]: 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: 542d9df7-da7c-4d45-b252-7038fdfa0f00 Correlation ID: a449e740-71d0-4169-8d62-bae75c5aab68 Timestamp: 2026-04-18 23:12:57Z - Correlation ID: a449e740-71d0-4169-8d62-bae75c5aab68 - Trace ID: 542d9df7-da7c-4d45-b252-7038fdfa0f00
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)