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-15 17:30:55Z]: 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: 8f98e606-c6e0-488a-95d1-0e27bd5b8d00 Correlation ID: c0cd0469-1ee3-4e90-b1f5-c6c382ceefb0 Timestamp: 2026-04-15 17:30:55Z - Correlation ID: c0cd0469-1ee3-4e90-b1f5-c6c382ceefb0 - Trace ID: 8f98e606-c6e0-488a-95d1-0e27bd5b8d00
(node:512) [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-15 17:30:55Z]: 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: 2e5cd1a8-6435-4587-9144-9f15fc471a00 Correlation ID: 29bc9140-50ed-430e-922c-350a230052e2 Timestamp: 2026-04-15 17:30:55Z - Correlation ID: 29bc9140-50ed-430e-922c-350a230052e2 - Trace ID: 2e5cd1a8-6435-4587-9144-9f15fc471a00
Error getting the secret: invalid_client: 7000222 - [2026-04-15 17:30:56Z]: 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: 2e5cd1a8-6435-4587-9144-9f1507481a00 Correlation ID: 66e5db94-8d17-4608-b07a-80e8575822a3 Timestamp: 2026-04-15 17:30:56Z - Correlation ID: 66e5db94-8d17-4608-b07a-80e8575822a3 - Trace ID: 2e5cd1a8-6435-4587-9144-9f1507481a00
Error getting the secret: invalid_client: 7000222 - [2026-04-15 17:30:56Z]: 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: bf36f186-1236-414d-93a8-ba368d181b00 Correlation ID: 370a0f16-6f47-4f78-a0f3-c3acd5ea48f1 Timestamp: 2026-04-15 17:30:56Z - Correlation ID: 370a0f16-6f47-4f78-a0f3-c3acd5ea48f1 - Trace ID: bf36f186-1236-414d-93a8-ba368d181b00
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)