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-15 11:30:44Z]: 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: 49f5a07d-3e5d-4545-b105-3d5517620100 Correlation ID: bb388041-7ba5-45ca-afa0-2a6881e6f208 Timestamp: 2026-05-15 11:30:44Z - Correlation ID: bb388041-7ba5-45ca-afa0-2a6881e6f208 - Trace ID: 49f5a07d-3e5d-4545-b105-3d5517620100
(node:4936) [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-15 11:30:44Z]: 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: b2c51401-28cc-4c89-9919-7835faf60000 Correlation ID: 6aa513b3-5d90-4b32-88c5-4c11a1aef41e Timestamp: 2026-05-15 11:30:44Z - Correlation ID: 6aa513b3-5d90-4b32-88c5-4c11a1aef41e - Trace ID: b2c51401-28cc-4c89-9919-7835faf60000
Error getting the secret: invalid_client: 7000222 - [2026-05-15 11:30:44Z]: 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: 7f1a278e-c342-406e-b763-ef37032f1a00 Correlation ID: 98533628-ab77-4bf1-af39-c30b57d1a5ec Timestamp: 2026-05-15 11:30:44Z - Correlation ID: 98533628-ab77-4bf1-af39-c30b57d1a5ec - Trace ID: 7f1a278e-c342-406e-b763-ef37032f1a00
Error getting the secret: invalid_client: 7000222 - [2026-05-15 11:30:45Z]: 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: a192b2ce-e894-4dd9-aa46-d2b5a44c0c00 Correlation ID: fb9e70c1-5397-484e-b1f0-506435f10521 Timestamp: 2026-05-15 11:30:45Z - Correlation ID: fb9e70c1-5397-484e-b1f0-506435f10521 - Trace ID: a192b2ce-e894-4dd9-aa46-d2b5a44c0c00
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)