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-18 01:24:56Z]: 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: 2244e2aa-6347-4e51-bb7c-6652f49e1800 Correlation ID: e2ee1865-406c-4ec9-a926-d12a271a29fb Timestamp: 2026-03-18 01:24:56Z - Correlation ID: e2ee1865-406c-4ec9-a926-d12a271a29fb - Trace ID: 2244e2aa-6347-4e51-bb7c-6652f49e1800
(node:1076) [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-18 01:24:56Z]: 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: 5d238833-af8d-4368-bd75-9fd7a0bd1700 Correlation ID: 3ed85be8-0ddc-49f0-ba8b-b75d6455a1fc Timestamp: 2026-03-18 01:24:56Z - Correlation ID: 3ed85be8-0ddc-49f0-ba8b-b75d6455a1fc - Trace ID: 5d238833-af8d-4368-bd75-9fd7a0bd1700
Error getting the secret: invalid_client: 7000222 - [2026-03-18 01:24:56Z]: 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: ef43c437-52ed-4c53-8aaf-39f44db01800 Correlation ID: 49d34fcd-8677-46b8-aa28-a6195ea3f8e6 Timestamp: 2026-03-18 01:24:56Z - Correlation ID: 49d34fcd-8677-46b8-aa28-a6195ea3f8e6 - Trace ID: ef43c437-52ed-4c53-8aaf-39f44db01800
Error getting the secret: invalid_client: 7000222 - [2026-03-18 01:24:56Z]: 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: 5d238833-af8d-4368-bd75-9fd7a9bd1700 Correlation ID: 9f200a89-2b98-4a55-804e-04ec9448b0e6 Timestamp: 2026-03-18 01:24:56Z - Correlation ID: 9f200a89-2b98-4a55-804e-04ec9448b0e6 - Trace ID: 5d238833-af8d-4368-bd75-9fd7a9bd1700
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)