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-01-24 10:14:12Z]: 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: ad78c1a6-d82a-4177-90b1-d7d6c9690300 Correlation ID: 980c35a3-2a93-4e51-b8ae-d34b2bd71339 Timestamp: 2026-01-24 10:14:12Z - Correlation ID: 980c35a3-2a93-4e51-b8ae-d34b2bd71339 - Trace ID: ad78c1a6-d82a-4177-90b1-d7d6c9690300
(node:3396) [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-01-24 10:14:12Z]: 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: ad78c1a6-d82a-4177-90b1-d7d6cc690300 Correlation ID: ac4311ad-07fa-4f58-892a-c8df93ea61cd Timestamp: 2026-01-24 10:14:12Z - Correlation ID: ac4311ad-07fa-4f58-892a-c8df93ea61cd - Trace ID: ad78c1a6-d82a-4177-90b1-d7d6cc690300
Error getting the secret: invalid_client: 7000222 - [2026-01-24 10:14:12Z]: 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: b9a7ca61-ea12-4b24-b975-642506a60300 Correlation ID: 52407ca9-a718-4f71-bea1-0eeec091c582 Timestamp: 2026-01-24 10:14:12Z - Correlation ID: 52407ca9-a718-4f71-bea1-0eeec091c582 - Trace ID: b9a7ca61-ea12-4b24-b975-642506a60300
Error getting the secret: invalid_client: 7000222 - [2026-01-24 10:14:12Z]: 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: 2f4b8188-e7f5-4513-a0f5-d9c0b90d0300 Correlation ID: a85b4772-4024-4ac7-914e-73b7bf79a5ff Timestamp: 2026-01-24 10:14:12Z - Correlation ID: a85b4772-4024-4ac7-914e-73b7bf79a5ff - Trace ID: 2f4b8188-e7f5-4513-a0f5-d9c0b90d0300
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)