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 - [2026-02-25 05:39:32Z]: 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: accff7b4-1ef2-4152-8a74-d0db102d2600 Correlation ID: 6a9f594f-ad90-4db4-bff4-af4a4c8c1ad4 Timestamp: 2026-02-25 05:39:32Z - Correlation ID: 6a9f594f-ad90-4db4-bff4-af4a4c8c1ad4 - Trace ID: accff7b4-1ef2-4152-8a74-d0db102d2600
(node:4276) [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 - [2026-02-25 05:39:32Z]: 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: 7bd12451-d604-437e-90bb-13b810568e00 Correlation ID: 7abd532d-aa1e-4530-a94a-a7192779fe87 Timestamp: 2026-02-25 05:39:32Z - Correlation ID: 7abd532d-aa1e-4530-a94a-a7192779fe87 - Trace ID: 7bd12451-d604-437e-90bb-13b810568e00
Error getting the secret: invalid_client: 7000222 - [2026-02-25 05:39:33Z]: 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: 271b556f-a0bd-4c25-ae61-3be12b492e00 Correlation ID: 40e720ca-0ca4-4e41-8562-b5dae6a7a11c Timestamp: 2026-02-25 05:39:33Z - Correlation ID: 40e720ca-0ca4-4e41-8562-b5dae6a7a11c - Trace ID: 271b556f-a0bd-4c25-ae61-3be12b492e00
Error getting the secret: invalid_client: 7000222 - [2026-02-25 05:39:33Z]: 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: 7fcce945-b60c-4fd4-8b85-beef9e0c4100 Correlation ID: e6f065d8-7fed-4dfd-8676-08d58c9ca457 Timestamp: 2026-02-25 05:39:33Z - Correlation ID: e6f065d8-7fed-4dfd-8676-08d58c9ca457 - Trace ID: 7fcce945-b60c-4fd4-8b85-beef9e0c4100
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)