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-05-03 07:39:37Z]: 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: d5fc2bf4-cfed-4728-ad3c-4aaf68b15000 Correlation ID: 08f0acaa-dcb4-4336-b434-81847c95f7b6 Timestamp: 2026-05-03 07:39:37Z - Correlation ID: 08f0acaa-dcb4-4336-b434-81847c95f7b6 - Trace ID: d5fc2bf4-cfed-4728-ad3c-4aaf68b15000
(node:2724) [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-05-03 07:39:37Z]: 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: bd9e3c8f-cdd7-4bdf-b2fd-a737d33a7c00 Correlation ID: ac8b9ad7-f3a5-48dc-b5a2-4da712c9e397 Timestamp: 2026-05-03 07:39:37Z - Correlation ID: ac8b9ad7-f3a5-48dc-b5a2-4da712c9e397 - Trace ID: bd9e3c8f-cdd7-4bdf-b2fd-a737d33a7c00
Error getting the secret: invalid_client: 7000222 - [2026-05-03 07:39:38Z]: 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: b9caeebc-e966-4248-be70-d6cde08d4b00 Correlation ID: f9de6dc7-0416-4e8a-83cb-d8ad7b93a987 Timestamp: 2026-05-03 07:39:38Z - Correlation ID: f9de6dc7-0416-4e8a-83cb-d8ad7b93a987 - Trace ID: b9caeebc-e966-4248-be70-d6cde08d4b00
Error getting the secret: invalid_client: 7000222 - [2026-05-03 07:39:38Z]: 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: c9fa27ad-1e4e-4004-9e2c-5f5ff0a75100 Correlation ID: 93b42b56-b7e2-4266-8b5d-d6b3261791bc Timestamp: 2026-05-03 07:39:38Z - Correlation ID: 93b42b56-b7e2-4266-8b5d-d6b3261791bc - Trace ID: c9fa27ad-1e4e-4004-9e2c-5f5ff0a75100
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)