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-11-26 05:26:45Z]: 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: 5a27df6d-8dfd-45af-a72c-15243cab4e00 Correlation ID: 0a042cf5-3bb9-4dbb-9cd7-905a296a78c7 Timestamp: 2025-11-26 05:26:45Z - Correlation ID: 0a042cf5-3bb9-4dbb-9cd7-905a296a78c7 - Trace ID: 5a27df6d-8dfd-45af-a72c-15243cab4e00
(node:1352) [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-11-26 05:26:45Z]: 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: 06267c3c-87f7-4c2b-b771-f45f8e1a2200 Correlation ID: 2c9cbf78-5cab-454b-90af-c8803f0839f3 Timestamp: 2025-11-26 05:26:45Z - Correlation ID: 2c9cbf78-5cab-454b-90af-c8803f0839f3 - Trace ID: 06267c3c-87f7-4c2b-b771-f45f8e1a2200
Error getting the secret: invalid_client: 7000222 - [2025-11-26 05:26:45Z]: 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: d03f4722-2ee0-4028-8632-6c1f0d4c2e00 Correlation ID: 8175f350-32b3-4aab-941c-0e89c6fd821f Timestamp: 2025-11-26 05:26:45Z - Correlation ID: 8175f350-32b3-4aab-941c-0e89c6fd821f - Trace ID: d03f4722-2ee0-4028-8632-6c1f0d4c2e00
Error getting the secret: invalid_client: 7000222 - [2025-11-26 05:26:46Z]: 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: 6c709e24-11a5-40d7-b3ca-bbbd13d93200 Correlation ID: 93930a14-3b19-4152-8a7e-e97efd7d7906 Timestamp: 2025-11-26 05:26:46Z - Correlation ID: 93930a14-3b19-4152-8a7e-e97efd7d7906 - Trace ID: 6c709e24-11a5-40d7-b3ca-bbbd13d93200
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)