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-04-13 03:21: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: d9c094c0-df59-44a1-b0fd-b95b5f272600 Correlation ID: 917bd3f1-ca79-4ca6-bc23-74343220dd03 Timestamp: 2026-04-13 03:21:13Z - Correlation ID: 917bd3f1-ca79-4ca6-bc23-74343220dd03 - Trace ID: d9c094c0-df59-44a1-b0fd-b95b5f272600
(node:5468) [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-04-13 03:21: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: fa1af1a8-8286-473f-9abe-ffc27b4d4d00 Correlation ID: 7dbaea32-020a-4569-bfb9-c41d3e5f015f Timestamp: 2026-04-13 03:21:13Z - Correlation ID: 7dbaea32-020a-4569-bfb9-c41d3e5f015f - Trace ID: fa1af1a8-8286-473f-9abe-ffc27b4d4d00
Error getting the secret: invalid_client: 7000222 - [2026-04-13 03:21: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: 475c46cd-1506-4711-9f54-33f6343f1a00 Correlation ID: 10ffa660-1cb9-42e7-af4c-54b25f18b59c Timestamp: 2026-04-13 03:21:13Z - Correlation ID: 10ffa660-1cb9-42e7-af4c-54b25f18b59c - Trace ID: 475c46cd-1506-4711-9f54-33f6343f1a00
Error getting the secret: invalid_client: 7000222 - [2026-04-13 03:21: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: 1acfca3f-5641-4b1c-897c-6c19ec953300 Correlation ID: 9268b9e1-58c2-4749-8a4a-18fe39e1aaa0 Timestamp: 2026-04-13 03:21:13Z - Correlation ID: 9268b9e1-58c2-4749-8a4a-18fe39e1aaa0 - Trace ID: 1acfca3f-5641-4b1c-897c-6c19ec953300
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)