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-03-04 05:03:54Z]: 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: 4eb2628f-639a-45e7-8e1a-cf07b0951100 Correlation ID: b0a8be19-bf17-443e-b424-ed39ca2fa277 Timestamp: 2026-03-04 05:03:54Z - Correlation ID: b0a8be19-bf17-443e-b424-ed39ca2fa277 - Trace ID: 4eb2628f-639a-45e7-8e1a-cf07b0951100
(node:4292) [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-03-04 05:03:55Z]: 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: 9ac2b039-0fa8-4844-8a33-39ee70dea300 Correlation ID: d7b55928-181b-4e3c-9528-813955e58596 Timestamp: 2026-03-04 05:03:55Z - Correlation ID: d7b55928-181b-4e3c-9528-813955e58596 - Trace ID: 9ac2b039-0fa8-4844-8a33-39ee70dea300
Error getting the secret: invalid_client: 7000222 - [2026-03-04 05:03:55Z]: 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: 3a197165-790b-40db-b855-321246843700 Correlation ID: a9fcb0cd-ebb2-4886-b21c-6851a8ade8cf Timestamp: 2026-03-04 05:03:55Z - Correlation ID: a9fcb0cd-ebb2-4886-b21c-6851a8ade8cf - Trace ID: 3a197165-790b-40db-b855-321246843700
Error getting the secret: invalid_client: 7000222 - [2026-03-04 05:03:55Z]: 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: 3a197165-790b-40db-b855-32124a843700 Correlation ID: c69ec729-3a97-4381-99ba-7e935e6d8656 Timestamp: 2026-03-04 05:03:55Z - Correlation ID: c69ec729-3a97-4381-99ba-7e935e6d8656 - Trace ID: 3a197165-790b-40db-b855-32124a843700
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)