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-23 15:18:47Z]: 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: 50f972f9-8d2d-4ab2-b6ac-b44a11d62e00 Correlation ID: 70e08a8f-390d-4906-8214-4994fe3e0241 Timestamp: 2026-03-23 15:18:47Z - Correlation ID: 70e08a8f-390d-4906-8214-4994fe3e0241 - Trace ID: 50f972f9-8d2d-4ab2-b6ac-b44a11d62e00
(node:5748) [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-23 15:18:48Z]: 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: 77a84e1f-3c75-41d5-a1bd-a2f3cfe62c00 Correlation ID: 9121db0e-cb89-438c-8771-98890d4fe5a1 Timestamp: 2026-03-23 15:18:48Z - Correlation ID: 9121db0e-cb89-438c-8771-98890d4fe5a1 - Trace ID: 77a84e1f-3c75-41d5-a1bd-a2f3cfe62c00
Error getting the secret: invalid_client: 7000222 - [2026-03-23 15:18:48Z]: 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: f0819983-e397-425d-bacb-a3f0bc444500 Correlation ID: 15659f8d-58f4-4831-8254-f12c4a4582de Timestamp: 2026-03-23 15:18:48Z - Correlation ID: 15659f8d-58f4-4831-8254-f12c4a4582de - Trace ID: f0819983-e397-425d-bacb-a3f0bc444500
Error getting the secret: invalid_client: 7000222 - [2026-03-23 15:18:48Z]: 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: 166763ce-49d8-44f5-bafc-b508aed32a00 Correlation ID: 801ec021-7ebe-405b-83b3-0dd899ce1425 Timestamp: 2026-03-23 15:18:48Z - Correlation ID: 801ec021-7ebe-405b-83b3-0dd899ce1425 - Trace ID: 166763ce-49d8-44f5-bafc-b508aed32a00
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)