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-04-23 03:08:42Z]: 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: 652fab0d-824b-4bb3-8654-08fe3bf66700 Correlation ID: e7336a8b-cf08-48af-b238-c769bc39adc8 Timestamp: 2026-04-23 03:08:42Z - Correlation ID: e7336a8b-cf08-48af-b238-c769bc39adc8 - Trace ID: 652fab0d-824b-4bb3-8654-08fe3bf66700
(node:4608) [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-04-23 03:08:42Z]: 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: b5730f0a-c1f2-4857-a36b-caee8c8e1a00 Correlation ID: 254c445e-e45f-4d2b-ad53-d61596d07e21 Timestamp: 2026-04-23 03:08:42Z - Correlation ID: 254c445e-e45f-4d2b-ad53-d61596d07e21 - Trace ID: b5730f0a-c1f2-4857-a36b-caee8c8e1a00
Error getting the secret: invalid_client: 7000222 - [2026-04-23 03:08:42Z]: 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: b0d9c07b-6860-4281-82c4-94f3f01f2000 Correlation ID: 29a216d7-ca78-4b78-b791-3ada165b750c Timestamp: 2026-04-23 03:08:42Z - Correlation ID: 29a216d7-ca78-4b78-b791-3ada165b750c - Trace ID: b0d9c07b-6860-4281-82c4-94f3f01f2000
Error getting the secret: invalid_client: 7000222 - [2026-04-23 03:08:43Z]: 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: b0d9c07b-6860-4281-82c4-94f3ff1f2000 Correlation ID: 5d5b00ff-ab5c-4db4-8292-6f89d6d0b9e8 Timestamp: 2026-04-23 03:08:43Z - Correlation ID: 5d5b00ff-ab5c-4db4-8292-6f89d6d0b9e8 - Trace ID: b0d9c07b-6860-4281-82c4-94f3ff1f2000
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)