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-16 07:19:18Z]: 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: 2702fc49-d4d5-40a6-ba44-0075e0173c00 Correlation ID: 15c9e0b2-9bdd-4b3f-b1d9-7fa241325594 Timestamp: 2026-04-16 07:19:18Z - Correlation ID: 15c9e0b2-9bdd-4b3f-b1d9-7fa241325594 - Trace ID: 2702fc49-d4d5-40a6-ba44-0075e0173c00
(node:5188) [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-16 07:19:18Z]: 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: 497096e1-b834-4c82-b3d4-451d8d692800 Correlation ID: 7c44dfde-2fdb-4d63-98bb-615d675e479f Timestamp: 2026-04-16 07:19:18Z - Correlation ID: 7c44dfde-2fdb-4d63-98bb-615d675e479f - Trace ID: 497096e1-b834-4c82-b3d4-451d8d692800
Error getting the secret: invalid_client: 7000222 - [2026-04-16 07:19:18Z]: 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: 55dc60da-775f-4fa7-b23e-dd85fe794700 Correlation ID: e92d5175-854a-4048-addb-1f53e20240a0 Timestamp: 2026-04-16 07:19:18Z - Correlation ID: e92d5175-854a-4048-addb-1f53e20240a0 - Trace ID: 55dc60da-775f-4fa7-b23e-dd85fe794700
Error getting the secret: invalid_client: 7000222 - [2026-04-16 07:19:19Z]: 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: 55dc60da-775f-4fa7-b23e-dd850c7a4700 Correlation ID: 3b2ec853-4212-4d21-a3fa-66b4dc0a4484 Timestamp: 2026-04-16 07:19:19Z - Correlation ID: 3b2ec853-4212-4d21-a3fa-66b4dc0a4484 - Trace ID: 55dc60da-775f-4fa7-b23e-dd850c7a4700
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)