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-06 05:07:58Z]: 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: c29e86e0-9abc-415a-81fb-df1f591f0900 Correlation ID: baa3e710-c47a-41d4-8dde-65a7c234615c Timestamp: 2026-05-06 05:07:58Z - Correlation ID: baa3e710-c47a-41d4-8dde-65a7c234615c - Trace ID: c29e86e0-9abc-415a-81fb-df1f591f0900
(node:3612) [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-06 05:07:59Z]: 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: f3ba9c75-5733-4c6b-a856-4a69b54b2400 Correlation ID: 6134e280-c310-447d-bd7d-7577bfdd6e53 Timestamp: 2026-05-06 05:07:59Z - Correlation ID: 6134e280-c310-447d-bd7d-7577bfdd6e53 - Trace ID: f3ba9c75-5733-4c6b-a856-4a69b54b2400
Error getting the secret: invalid_client: 7000222 - [2026-05-06 05:07:59Z]: 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: c29e86e0-9abc-415a-81fb-df1f631f0900 Correlation ID: 5840ca8a-9b11-418c-b9d0-8905c5a29dfd Timestamp: 2026-05-06 05:07:59Z - Correlation ID: 5840ca8a-9b11-418c-b9d0-8905c5a29dfd - Trace ID: c29e86e0-9abc-415a-81fb-df1f631f0900
Error getting the secret: invalid_client: 7000222 - [2026-05-06 05:07:59Z]: 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: c510143c-bb6d-46db-ba38-194662ab0d00 Correlation ID: 0f281550-a0e9-4568-9068-e831461e5961 Timestamp: 2026-05-06 05:07:59Z - Correlation ID: 0f281550-a0e9-4568-9068-e831461e5961 - Trace ID: c510143c-bb6d-46db-ba38-194662ab0d00
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)