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-17 05:16:11Z]: 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: d78d0b5a-72c8-4d7b-a0f0-3e2289d42700 Correlation ID: 07082f58-02ee-4c5f-aca4-e0b9116e9452 Timestamp: 2026-04-17 05:16:11Z - Correlation ID: 07082f58-02ee-4c5f-aca4-e0b9116e9452 - Trace ID: d78d0b5a-72c8-4d7b-a0f0-3e2289d42700
(node:3532) [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-17 05:16:11Z]: 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: 8d097e01-d095-40c9-af8b-1c68f4210300 Correlation ID: 51cfaffe-44bf-451c-8467-c767ba2c7eda Timestamp: 2026-04-17 05:16:11Z - Correlation ID: 51cfaffe-44bf-451c-8467-c767ba2c7eda - Trace ID: 8d097e01-d095-40c9-af8b-1c68f4210300
Error getting the secret: invalid_client: 7000222 - [2026-04-17 05:16:12Z]: 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: 4ea0edd7-df60-4eac-8390-4c70ab5d0300 Correlation ID: 806c81e4-e531-4723-b895-ff5581b599bc Timestamp: 2026-04-17 05:16:12Z - Correlation ID: 806c81e4-e531-4723-b895-ff5581b599bc - Trace ID: 4ea0edd7-df60-4eac-8390-4c70ab5d0300
Error getting the secret: invalid_client: 7000222 - [2026-04-17 05:16:12Z]: 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: b34f5bbf-0dc9-42ab-a6c0-22cbfd492300 Correlation ID: c1e9f699-0247-4359-a5d9-8ededf5bae17 Timestamp: 2026-04-17 05:16:12Z - Correlation ID: c1e9f699-0247-4359-a5d9-8ededf5bae17 - Trace ID: b34f5bbf-0dc9-42ab-a6c0-22cbfd492300
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)