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-16 01:25:36Z]: 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: a62b0280-b9a0-44b7-9475-d5404aa70c00 Correlation ID: f69724d0-ed0a-4b4d-b7f7-7f82b827911e Timestamp: 2026-05-16 01:25:36Z - Correlation ID: f69724d0-ed0a-4b4d-b7f7-7f82b827911e - Trace ID: a62b0280-b9a0-44b7-9475-d5404aa70c00
(node:6508) [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-16 01:25: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: 409e515b-8cf8-4568-98e9-bae39c171600 Correlation ID: 63d9329b-5f01-40c9-bfdb-2b8a06797e0e Timestamp: 2026-05-16 01:25:37Z - Correlation ID: 63d9329b-5f01-40c9-bfdb-2b8a06797e0e - Trace ID: 409e515b-8cf8-4568-98e9-bae39c171600
Error getting the secret: invalid_client: 7000222 - [2026-05-16 01:25: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: fb8d500c-920b-488e-b277-a518fcea1000 Correlation ID: 2efea153-eb66-4097-b1a1-a6a3e03d2dd8 Timestamp: 2026-05-16 01:25:37Z - Correlation ID: 2efea153-eb66-4097-b1a1-a6a3e03d2dd8 - Trace ID: fb8d500c-920b-488e-b277-a518fcea1000
Error getting the secret: invalid_client: 7000222 - [2026-05-16 01:25: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: 0cafce0d-028d-441c-9dad-a2d516100400 Correlation ID: e4cafd64-c7ed-442e-92e2-98d059a6cff0 Timestamp: 2026-05-16 01:25:37Z - Correlation ID: e4cafd64-c7ed-442e-92e2-98d059a6cff0 - Trace ID: 0cafce0d-028d-441c-9dad-a2d516100400
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)