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-05 20:25:52Z]: 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: 9c84f4f8-3518-4efe-92d3-c7f3d1d40a00 Correlation ID: 7aa5422e-3341-4f8f-bc12-9e5e030c93ff Timestamp: 2026-03-05 20:25:52Z - Correlation ID: 7aa5422e-3341-4f8f-bc12-9e5e030c93ff - Trace ID: 9c84f4f8-3518-4efe-92d3-c7f3d1d40a00
(node:868) [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-05 20:25:52Z]: 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: f937fbaa-4f30-45c0-a89d-8d9da3570c00 Correlation ID: c83655be-87c5-4377-a9ca-e3201c50bd72 Timestamp: 2026-03-05 20:25:52Z - Correlation ID: c83655be-87c5-4377-a9ca-e3201c50bd72 - Trace ID: f937fbaa-4f30-45c0-a89d-8d9da3570c00
Error getting the secret: invalid_client: 7000222 - [2026-03-05 20:25:53Z]: 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: 4e40cc58-3a1b-4167-9d14-4511ce417600 Correlation ID: 751771cf-4e01-4231-9941-08f2de699ddf Timestamp: 2026-03-05 20:25:53Z - Correlation ID: 751771cf-4e01-4231-9941-08f2de699ddf - Trace ID: 4e40cc58-3a1b-4167-9d14-4511ce417600
Error getting the secret: invalid_client: 7000222 - [2026-03-05 20:25:53Z]: 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: f937fbaa-4f30-45c0-a89d-8d9db0570c00 Correlation ID: 30777eb3-b35b-4616-aeb7-bd62415ee64b Timestamp: 2026-03-05 20:25:53Z - Correlation ID: 30777eb3-b35b-4616-aeb7-bd62415ee64b - Trace ID: f937fbaa-4f30-45c0-a89d-8d9db0570c00
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)