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-11 03:48:22Z]: 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: d59ddca1-f092-4dae-9133-4a32e5611c00 Correlation ID: ecf5cd62-7e1f-43f0-9e40-345f0b3bdc1b Timestamp: 2025-12-11 03:48:22Z - Correlation ID: ecf5cd62-7e1f-43f0-9e40-345f0b3bdc1b - Trace ID: d59ddca1-f092-4dae-9133-4a32e5611c00
(node:4312) [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-11 03:48:22Z]: 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: 37ca07ee-e050-4d63-8fec-0115d6aa2a00 Correlation ID: 2af102a1-4419-48d6-ae27-99da1a345e08 Timestamp: 2025-12-11 03:48:22Z - Correlation ID: 2af102a1-4419-48d6-ae27-99da1a345e08 - Trace ID: 37ca07ee-e050-4d63-8fec-0115d6aa2a00
Error getting the secret: invalid_client: 7000222 - [2025-12-11 03:48:22Z]: 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: becba42d-8934-4185-9a48-d8ce92034800 Correlation ID: 67da2560-922e-4ff2-b9fa-0ed702ff4176 Timestamp: 2025-12-11 03:48:22Z - Correlation ID: 67da2560-922e-4ff2-b9fa-0ed702ff4176 - Trace ID: becba42d-8934-4185-9a48-d8ce92034800
Error getting the secret: invalid_client: 7000222 - [2025-12-11 03:48:23Z]: 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: 2929080f-ab86-4d87-adc5-c8af442c1d00 Correlation ID: 85e1e23f-8c2e-4337-8f04-03a6458ce83e Timestamp: 2025-12-11 03:48:23Z - Correlation ID: 85e1e23f-8c2e-4337-8f04-03a6458ce83e - Trace ID: 2929080f-ab86-4d87-adc5-c8af442c1d00
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)