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-19 21:28:25Z]: 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: fac2f6ad-239a-4a40-8c37-5179411e1200 Correlation ID: 132f1a27-3d78-464f-945b-fd5b0f298e22 Timestamp: 2026-04-19 21:28:25Z - Correlation ID: 132f1a27-3d78-464f-945b-fd5b0f298e22 - Trace ID: fac2f6ad-239a-4a40-8c37-5179411e1200
(node:4048) [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-19 21:28:25Z]: 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: 35671f5d-e375-44ae-95a3-205b38693300 Correlation ID: d5594d21-c7ee-44f1-a21a-5330883c7df1 Timestamp: 2026-04-19 21:28:25Z - Correlation ID: d5594d21-c7ee-44f1-a21a-5330883c7df1 - Trace ID: 35671f5d-e375-44ae-95a3-205b38693300
Error getting the secret: invalid_client: 7000222 - [2026-04-19 21:28:25Z]: 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: 307d4a4d-45cf-4884-8d8d-2c0712030200 Correlation ID: 9561122e-6c7b-4066-8588-800500988da1 Timestamp: 2026-04-19 21:28:25Z - Correlation ID: 9561122e-6c7b-4066-8588-800500988da1 - Trace ID: 307d4a4d-45cf-4884-8d8d-2c0712030200
Error getting the secret: invalid_client: 7000222 - [2026-04-19 21:28:25Z]: 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: a78d2347-61e1-4a0e-9752-9e98420f0300 Correlation ID: 7ab9a62f-f747-43e4-87a6-0d69abe3e639 Timestamp: 2026-04-19 21:28:25Z - Correlation ID: 7ab9a62f-f747-43e4-87a6-0d69abe3e639 - Trace ID: a78d2347-61e1-4a0e-9752-9e98420f0300
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)