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-07 18:18:57Z]: 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: 266e4d0b-32fb-466c-b0bf-944ef5910300 Correlation ID: d97b637e-77d3-48c1-afbd-e63fb06dd1e8 Timestamp: 2026-03-07 18:18:57Z - Correlation ID: d97b637e-77d3-48c1-afbd-e63fb06dd1e8 - Trace ID: 266e4d0b-32fb-466c-b0bf-944ef5910300
(node:2548) [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-07 18:18:57Z]: 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: 266e4d0b-32fb-466c-b0bf-944ef9910300 Correlation ID: c22db3d9-984a-464c-834b-072219884395 Timestamp: 2026-03-07 18:18:57Z - Correlation ID: c22db3d9-984a-464c-834b-072219884395 - Trace ID: 266e4d0b-32fb-466c-b0bf-944ef9910300
Error getting the secret: invalid_client: 7000222 - [2026-03-07 18:18: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: 5e3d9b9c-99cb-45ee-ae48-08903f7c4400 Correlation ID: 69027e29-d7bb-474a-80b2-2d36dd8373c9 Timestamp: 2026-03-07 18:18:58Z - Correlation ID: 69027e29-d7bb-474a-80b2-2d36dd8373c9 - Trace ID: 5e3d9b9c-99cb-45ee-ae48-08903f7c4400
Error getting the secret: invalid_client: 7000222 - [2026-03-07 18:18: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: f4b6f32a-5a4e-404b-a0ac-9842c8c31700 Correlation ID: 9c93fd76-6ccf-4904-a257-354030c1035b Timestamp: 2026-03-07 18:18:58Z - Correlation ID: 9c93fd76-6ccf-4904-a257-354030c1035b - Trace ID: f4b6f32a-5a4e-404b-a0ac-9842c8c31700
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)