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-16 22:41:29Z]: 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: 85487ddd-5817-49db-b48b-627ff54a2300 Correlation ID: 37104513-37bd-4656-847f-c0c9a3c581d8 Timestamp: 2025-11-16 22:41:29Z - Correlation ID: 37104513-37bd-4656-847f-c0c9a3c581d8 - Trace ID: 85487ddd-5817-49db-b48b-627ff54a2300
(node:4536) [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-16 22:41:30Z]: 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: 81ead1d4-6349-4009-91e9-ca4f53854000 Correlation ID: 4944738c-d880-4699-b948-66c13fc3246a Timestamp: 2025-11-16 22:41:30Z - Correlation ID: 4944738c-d880-4699-b948-66c13fc3246a - Trace ID: 81ead1d4-6349-4009-91e9-ca4f53854000
Error getting the secret: invalid_client: 7000222 - [2025-11-16 22:41:30Z]: 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: 8b526b63-4610-4d9a-b01e-3d7c35263f00 Correlation ID: 25586c45-899d-4ff6-a953-523371a308fc Timestamp: 2025-11-16 22:41:30Z - Correlation ID: 25586c45-899d-4ff6-a953-523371a308fc - Trace ID: 8b526b63-4610-4d9a-b01e-3d7c35263f00
Error getting the secret: invalid_client: 7000222 - [2025-11-16 22:41:30Z]: 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: 5caadc8b-b7c3-40c5-bc0b-85a666e22000 Correlation ID: e36caddd-e892-4066-9c0a-6e4d1cf3e756 Timestamp: 2025-11-16 22:41:30Z - Correlation ID: e36caddd-e892-4066-9c0a-6e4d1cf3e756 - Trace ID: 5caadc8b-b7c3-40c5-bc0b-85a666e22000
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)