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-19 05:18:38Z]: 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: bc50da52-50fe-438b-99f2-6eeb62a63900 Correlation ID: 784df8dc-3ce4-4aca-a7b8-8326e9521f66 Timestamp: 2026-03-19 05:18:38Z - Correlation ID: 784df8dc-3ce4-4aca-a7b8-8326e9521f66 - Trace ID: bc50da52-50fe-438b-99f2-6eeb62a63900
(node:6076) [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-19 05:18:38Z]: 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: 35c331c5-6a49-4e35-a870-cae3b3f81f00 Correlation ID: 1a891616-1ec8-419c-a2bb-a9f504d35bb7 Timestamp: 2026-03-19 05:18:38Z - Correlation ID: 1a891616-1ec8-419c-a2bb-a9f504d35bb7 - Trace ID: 35c331c5-6a49-4e35-a870-cae3b3f81f00
Error getting the secret: invalid_client: 7000222 - [2026-03-19 05:18:39Z]: 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: 6f20195e-8ed2-4b10-9544-6b549eff3900 Correlation ID: 4ba891d1-4aa3-47c9-ac91-37c17d6cb20b Timestamp: 2026-03-19 05:18:39Z - Correlation ID: 4ba891d1-4aa3-47c9-ac91-37c17d6cb20b - Trace ID: 6f20195e-8ed2-4b10-9544-6b549eff3900
Error getting the secret: invalid_client: 7000222 - [2026-03-19 05:18:39Z]: 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: 269932b7-88e5-4b59-b113-c211f0683300 Correlation ID: 82fd41e4-9896-4058-a591-befda2c6dd30 Timestamp: 2026-03-19 05:18:39Z - Correlation ID: 82fd41e4-9896-4058-a591-befda2c6dd30 - Trace ID: 269932b7-88e5-4b59-b113-c211f0683300
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)