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-06 00:49:47Z]: 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: f1fc270b-6972-418e-b930-f0d197690400 Correlation ID: 7ee6a754-dff9-4e8c-83a0-2661aadca7d4 Timestamp: 2026-05-06 00:49:47Z - Correlation ID: 7ee6a754-dff9-4e8c-83a0-2661aadca7d4 - Trace ID: f1fc270b-6972-418e-b930-f0d197690400
(node:2376) [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-06 00:49:47Z]: 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: f9fb2c59-4deb-4b56-94d2-ee40b9470800 Correlation ID: 8aa88d40-5203-4258-8131-155ad5745063 Timestamp: 2026-05-06 00:49:47Z - Correlation ID: 8aa88d40-5203-4258-8131-155ad5745063 - Trace ID: f9fb2c59-4deb-4b56-94d2-ee40b9470800
Error getting the secret: invalid_client: 7000222 - [2026-05-06 00:49:47Z]: 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: 258014a5-a19c-40d9-9d18-b6ff6aa60400 Correlation ID: f990a0c8-400d-4054-91e0-fe7d00798165 Timestamp: 2026-05-06 00:49:47Z - Correlation ID: f990a0c8-400d-4054-91e0-fe7d00798165 - Trace ID: 258014a5-a19c-40d9-9d18-b6ff6aa60400
Error getting the secret: invalid_client: 7000222 - [2026-05-06 00:49:47Z]: 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: 7353844b-9335-4084-8000-5ead0e2b0600 Correlation ID: 21bfbd06-3aaf-4b18-8070-f3e31f6ab539 Timestamp: 2026-05-06 00:49:47Z - Correlation ID: 21bfbd06-3aaf-4b18-8070-f3e31f6ab539 - Trace ID: 7353844b-9335-4084-8000-5ead0e2b0600
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)