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-04 23:14:49Z]: 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: b6a265c6-a96e-4169-b5d4-22908bb5be00 Correlation ID: 8ed8c71c-42b7-4180-b862-c5f241ef0a54 Timestamp: 2026-03-04 23:14:49Z - Correlation ID: 8ed8c71c-42b7-4180-b862-c5f241ef0a54 - Trace ID: b6a265c6-a96e-4169-b5d4-22908bb5be00
(node:2880) [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-04 23:14:49Z]: 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: a4981fac-6f3d-4fd2-84c1-d2008a7f2700 Correlation ID: 33d53c85-a5e6-49b4-883e-c8e969951505 Timestamp: 2026-03-04 23:14:49Z - Correlation ID: 33d53c85-a5e6-49b4-883e-c8e969951505 - Trace ID: a4981fac-6f3d-4fd2-84c1-d2008a7f2700
Error getting the secret: invalid_client: 7000222 - [2026-03-04 23:14:49Z]: 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: ac22a00b-7062-4e1d-9dd1-fdd62b4b3000 Correlation ID: 5ec3ad2d-893b-4843-b7bb-9f1b7e9dc128 Timestamp: 2026-03-04 23:14:49Z - Correlation ID: 5ec3ad2d-893b-4843-b7bb-9f1b7e9dc128 - Trace ID: ac22a00b-7062-4e1d-9dd1-fdd62b4b3000
Error getting the secret: invalid_client: 7000222 - [2026-03-04 23:14:49Z]: 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: fe908284-0ee3-40bf-a2d3-0b558e225500 Correlation ID: b1cfacf3-3baf-417f-a1d8-b42ecdb9bcd9 Timestamp: 2026-03-04 23:14:49Z - Correlation ID: b1cfacf3-3baf-417f-a1d8-b42ecdb9bcd9 - Trace ID: fe908284-0ee3-40bf-a2d3-0b558e225500
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)