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-04-08 07:54: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: b3a3fcb1-bff4-4408-900a-6c3739632b00 Correlation ID: 61bb74f0-90f9-4987-855a-a594198c94c3 Timestamp: 2026-04-08 07:54:12Z - Correlation ID: 61bb74f0-90f9-4987-855a-a594198c94c3 - Trace ID: b3a3fcb1-bff4-4408-900a-6c3739632b00
(node:3196) [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-04-08 07:54: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: 042677b0-fb69-45ee-93a6-cf83d6862c00 Correlation ID: 045a7aad-499c-4eb0-8dfa-23f2dbe708b3 Timestamp: 2026-04-08 07:54:12Z - Correlation ID: 045a7aad-499c-4eb0-8dfa-23f2dbe708b3 - Trace ID: 042677b0-fb69-45ee-93a6-cf83d6862c00
Error getting the secret: invalid_client: 7000222 - [2026-04-08 07:54:13Z]: 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: a10f3017-e43c-4f81-b650-046dde7e2a00 Correlation ID: 99a98667-9e6d-4cfe-b02f-5897145e5106 Timestamp: 2026-04-08 07:54:13Z - Correlation ID: 99a98667-9e6d-4cfe-b02f-5897145e5106 - Trace ID: a10f3017-e43c-4f81-b650-046dde7e2a00
Error getting the secret: invalid_client: 7000222 - [2026-04-08 07:54:13Z]: 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: 0d780060-5b12-4cf1-b6be-0991a2f01f00 Correlation ID: 70e9d0e6-8735-4c50-b684-2df9fe82f1c8 Timestamp: 2026-04-08 07:54:13Z - Correlation ID: 70e9d0e6-8735-4c50-b684-2df9fe82f1c8 - Trace ID: 0d780060-5b12-4cf1-b6be-0991a2f01f00
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)