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-15 09:01:39Z]: 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: 3073bb06-1e37-46e1-970a-3bf4f58d9300 Correlation ID: d249100c-649b-49c4-8fd2-f1c9c14db151 Timestamp: 2025-12-15 09:01:39Z - Correlation ID: d249100c-649b-49c4-8fd2-f1c9c14db151 - Trace ID: 3073bb06-1e37-46e1-970a-3bf4f58d9300
(node:5588) [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-15 09:01:40Z]: 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: 0d576e53-e23d-4118-baa0-0b6f5ab78e00 Correlation ID: ffab894f-7efd-438b-bd89-6e4dbf59a083 Timestamp: 2025-12-15 09:01:40Z - Correlation ID: ffab894f-7efd-438b-bd89-6e4dbf59a083 - Trace ID: 0d576e53-e23d-4118-baa0-0b6f5ab78e00
Error getting the secret: invalid_client: 7000222 - [2025-12-15 09:01:40Z]: 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: ef22c9f3-f7a2-4e96-8f0c-99611606b000 Correlation ID: c3620541-902a-4c75-906a-4d435866bdb8 Timestamp: 2025-12-15 09:01:40Z - Correlation ID: c3620541-902a-4c75-906a-4d435866bdb8 - Trace ID: ef22c9f3-f7a2-4e96-8f0c-99611606b000
Error getting the secret: invalid_client: 7000222 - [2025-12-15 09:01:40Z]: 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: f19dfd13-5832-4de3-a977-deace7988f00 Correlation ID: a22540ca-f62a-45fa-87b3-7fddf141dab4 Timestamp: 2025-12-15 09:01:40Z - Correlation ID: a22540ca-f62a-45fa-87b3-7fddf141dab4 - Trace ID: f19dfd13-5832-4de3-a977-deace7988f00
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)