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 - [2025-12-27 08:35:59Z]: 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: 571f8911-1f70-4916-b861-d53b9f549d00 Correlation ID: 177e8344-c087-4e45-ba9a-7ef684f30f89 Timestamp: 2025-12-27 08:35:59Z - Correlation ID: 177e8344-c087-4e45-ba9a-7ef684f30f89 - Trace ID: 571f8911-1f70-4916-b861-d53b9f549d00
(node:2524) [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 - [2025-12-27 08:35:59Z]: 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: 36af8498-5bc9-4243-b96e-8e263192b500 Correlation ID: 21e5741e-e5ba-47f5-98ba-cf8a387adae2 Timestamp: 2025-12-27 08:35:59Z - Correlation ID: 21e5741e-e5ba-47f5-98ba-cf8a387adae2 - Trace ID: 36af8498-5bc9-4243-b96e-8e263192b500
Error getting the secret: invalid_client: 7000222 - [2025-12-27 08:35:59Z]: 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: bc458881-3cbb-410f-959d-9ba49bf1b100 Correlation ID: 24d96210-5cfa-4c07-8ba5-7c65ed263fdf Timestamp: 2025-12-27 08:35:59Z - Correlation ID: 24d96210-5cfa-4c07-8ba5-7c65ed263fdf - Trace ID: bc458881-3cbb-410f-959d-9ba49bf1b100
Error getting the secret: invalid_client: 7000222 - [2025-12-27 08:36:00Z]: 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: e0250570-0701-4c7e-9c58-1b156c2aaa00 Correlation ID: 267ea423-8275-4f9c-8317-05a5ebb05199 Timestamp: 2025-12-27 08:36:00Z - Correlation ID: 267ea423-8275-4f9c-8317-05a5ebb05199 - Trace ID: e0250570-0701-4c7e-9c58-1b156c2aaa00
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)