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-23 01:24: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: dc32966d-a1a4-410a-8678-4f16699d0d00 Correlation ID: 8cfe3eff-db71-4c33-a68b-dc0460e88094 Timestamp: 2025-09-23 01:24:23Z - Correlation ID: 8cfe3eff-db71-4c33-a68b-dc0460e88094 - Trace ID: dc32966d-a1a4-410a-8678-4f16699d0d00 (node:2556) [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-23 01:24: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: 90b15e66-4b64-4b83-bc8b-17e9fec1ab00 Correlation ID: 4ff77da7-7035-46c1-8905-82e66bf64cbd Timestamp: 2025-09-23 01:24:23Z - Correlation ID: 4ff77da7-7035-46c1-8905-82e66bf64cbd - Trace ID: 90b15e66-4b64-4b83-bc8b-17e9fec1ab00 Error getting the secret: invalid_client: 7000222 - [2025-09-23 01:24:24Z]: 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: c8c493ce-fdbf-47b5-9c15-00d841b47d00 Correlation ID: d3ac1c31-0d29-4b54-8e6d-811b4bb6e8e4 Timestamp: 2025-09-23 01:24:24Z - Correlation ID: d3ac1c31-0d29-4b54-8e6d-811b4bb6e8e4 - Trace ID: c8c493ce-fdbf-47b5-9c15-00d841b47d00 Error getting the secret: invalid_client: 7000222 - [2025-09-23 01:24:24Z]: 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: f690885e-5adc-4234-b7b7-ba73e2ba5400 Correlation ID: 16700666-ed23-46b5-9f44-35c3861ea052 Timestamp: 2025-09-23 01:24:24Z - Correlation ID: 16700666-ed23-46b5-9f44-35c3861ea052 - Trace ID: f690885e-5adc-4234-b7b7-ba73e2ba5400 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)