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-09-21 13:33:06Z]: 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: acde6f9c-8ac3-459d-ad07-b8788373a300 Correlation ID: 8810de4c-da7a-471d-9a68-d2ca14b15b82 Timestamp: 2025-09-21 13:33:06Z - Correlation ID: 8810de4c-da7a-471d-9a68-d2ca14b15b82 - Trace ID: acde6f9c-8ac3-459d-ad07-b8788373a300
(node:4284) [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-09-21 13:33:06Z]: 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: 6817d83c-0f91-46c2-8944-145e95777200 Correlation ID: c33c09e5-cfec-4efb-b4b0-856120698906 Timestamp: 2025-09-21 13:33:06Z - Correlation ID: c33c09e5-cfec-4efb-b4b0-856120698906 - Trace ID: 6817d83c-0f91-46c2-8944-145e95777200
Error getting the secret: invalid_client: 7000222 - [2025-09-21 13:33:06Z]: 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: 4c529bc0-a7ae-45db-bbdc-5e8961e08300 Correlation ID: 9ad62cd3-8715-401a-8fa3-050528954af1 Timestamp: 2025-09-21 13:33:06Z - Correlation ID: 9ad62cd3-8715-401a-8fa3-050528954af1 - Trace ID: 4c529bc0-a7ae-45db-bbdc-5e8961e08300
Error getting the secret: invalid_client: 7000222 - [2025-09-21 13:33:06Z]: 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: 857d1155-0daf-45e9-b25a-e40502777600 Correlation ID: 4f5f1baf-66dc-4a49-a022-3cc49b79e990 Timestamp: 2025-09-21 13:33:06Z - Correlation ID: 4f5f1baf-66dc-4a49-a022-3cc49b79e990 - Trace ID: 857d1155-0daf-45e9-b25a-e40502777600
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)