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-01 15:24:07Z]: 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: defb2947-b12a-4f92-bea0-bd16340c5100 Correlation ID: a9812358-c0da-4d39-beeb-8130a22541c8 Timestamp: 2026-03-01 15:24:07Z - Correlation ID: a9812358-c0da-4d39-beeb-8130a22541c8 - Trace ID: defb2947-b12a-4f92-bea0-bd16340c5100
(node:5644) [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-01 15:24:08Z]: 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: 0c955b4b-45af-4a34-9f14-22a729534a00 Correlation ID: f4caa140-9602-4311-8d7f-c296a61bcb26 Timestamp: 2026-03-01 15:24:08Z - Correlation ID: f4caa140-9602-4311-8d7f-c296a61bcb26 - Trace ID: 0c955b4b-45af-4a34-9f14-22a729534a00
Error getting the secret: invalid_client: 7000222 - [2026-03-01 15:24:08Z]: 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: e104b39d-0012-4063-a9d6-ce01e7cc5500 Correlation ID: 40cc33f9-93d0-481c-b6a6-1904c3ac8300 Timestamp: 2026-03-01 15:24:08Z - Correlation ID: 40cc33f9-93d0-481c-b6a6-1904c3ac8300 - Trace ID: e104b39d-0012-4063-a9d6-ce01e7cc5500
Error getting the secret: invalid_client: 7000222 - [2026-03-01 15:24:09Z]: 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: defb2947-b12a-4f92-bea0-bd16510c5100 Correlation ID: 3f6f9772-ad57-4709-8287-3044e687ffc2 Timestamp: 2026-03-01 15:24:09Z - Correlation ID: 3f6f9772-ad57-4709-8287-3044e687ffc2 - Trace ID: defb2947-b12a-4f92-bea0-bd16510c5100
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)