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 14:48: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: a95f00d5-c346-4a5c-80ff-d9a34ab45600 Correlation ID: 8f6d2f7b-3d49-4433-9859-322bd1685ad3 Timestamp: 2026-03-05 14:48:53Z - Correlation ID: 8f6d2f7b-3d49-4433-9859-322bd1685ad3 - Trace ID: a95f00d5-c346-4a5c-80ff-d9a34ab45600
(node:4480) [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 14:48: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: 8c162af8-4a47-4b35-9596-a00e42ff3b00 Correlation ID: e100baae-977d-42fb-b12c-e4dd20184085 Timestamp: 2026-03-05 14:48:53Z - Correlation ID: e100baae-977d-42fb-b12c-e4dd20184085 - Trace ID: 8c162af8-4a47-4b35-9596-a00e42ff3b00
Error getting the secret: invalid_client: 7000222 - [2026-03-05 14:48:54Z]: 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: 5c367b71-f2e3-440d-856e-5a38aa3a0400 Correlation ID: f4d95c0f-8892-4a12-b593-283129c58c77 Timestamp: 2026-03-05 14:48:54Z - Correlation ID: f4d95c0f-8892-4a12-b593-283129c58c77 - Trace ID: 5c367b71-f2e3-440d-856e-5a38aa3a0400
Error getting the secret: invalid_client: 7000222 - [2026-03-05 14:48:54Z]: 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: 519b7181-cf76-4632-bb2e-90cd75733900 Correlation ID: 7a40cd28-d044-46de-b496-aa1b7502b79a Timestamp: 2026-03-05 14:48:54Z - Correlation ID: 7a40cd28-d044-46de-b496-aa1b7502b79a - Trace ID: 519b7181-cf76-4632-bb2e-90cd75733900
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)