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 02:10:13Z]: 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: 26ee8a47-138e-4012-908f-ddc3d8710d00 Correlation ID: b82e982b-3b8d-424b-8662-e47d8181be5f Timestamp: 2026-03-05 02:10:13Z - Correlation ID: b82e982b-3b8d-424b-8662-e47d8181be5f - Trace ID: 26ee8a47-138e-4012-908f-ddc3d8710d00
(node:4236) [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 02:10:13Z]: 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: 001ce23d-4f6c-4e4c-b1d3-5adba718d100 Correlation ID: fc4a7337-dd36-4b7d-b513-611a501dffd2 Timestamp: 2026-03-05 02:10:13Z - Correlation ID: fc4a7337-dd36-4b7d-b513-611a501dffd2 - Trace ID: 001ce23d-4f6c-4e4c-b1d3-5adba718d100
Error getting the secret: invalid_client: 7000222 - [2026-03-05 02:10:14Z]: 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: c4f58ab3-9927-4e33-a2c4-c5089b352800 Correlation ID: bbf2184a-f359-4929-861b-2bfde6406d6b Timestamp: 2026-03-05 02:10:14Z - Correlation ID: bbf2184a-f359-4929-861b-2bfde6406d6b - Trace ID: c4f58ab3-9927-4e33-a2c4-c5089b352800
Error getting the secret: invalid_client: 7000222 - [2026-03-05 02:10:14Z]: 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: 162999f8-5f74-4bfa-b98d-3bf79d7c4a00 Correlation ID: 242882c4-05d0-4db5-977b-e02a322e4190 Timestamp: 2026-03-05 02:10:14Z - Correlation ID: 242882c4-05d0-4db5-977b-e02a322e4190 - Trace ID: 162999f8-5f74-4bfa-b98d-3bf79d7c4a00
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)