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-05 05:07: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: fbad8d53-9f9c-467a-99b7-73d5a4075700 Correlation ID: e65cbbd5-b995-4032-a105-d5bce775bcea Timestamp: 2026-03-05 05:07:12Z - Correlation ID: e65cbbd5-b995-4032-a105-d5bce775bcea - Trace ID: fbad8d53-9f9c-467a-99b7-73d5a4075700
(node:3880) [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-05 05:07: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: 89b7a9a0-6317-4bfe-938b-fc8b8ba75800 Correlation ID: c41c879d-6dbb-4aa0-a31e-0e27bb9880b4 Timestamp: 2026-03-05 05:07:13Z - Correlation ID: c41c879d-6dbb-4aa0-a31e-0e27bb9880b4 - Trace ID: 89b7a9a0-6317-4bfe-938b-fc8b8ba75800
Error getting the secret: invalid_client: 7000222 - [2026-03-05 05:07: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: 74bfef8c-3f87-49e5-adc0-26a2da522900 Correlation ID: 7ddc17c0-1860-40e3-a977-82c05e8de4ae Timestamp: 2026-03-05 05:07:13Z - Correlation ID: 7ddc17c0-1860-40e3-a977-82c05e8de4ae - Trace ID: 74bfef8c-3f87-49e5-adc0-26a2da522900
Error getting the secret: invalid_client: 7000222 - [2026-03-05 05:07: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: 86cf32ec-3c30-485e-9ac7-06cfe579b700 Correlation ID: 3d5df956-9d5c-485c-ad16-088b57d951d3 Timestamp: 2026-03-05 05:07:13Z - Correlation ID: 3d5df956-9d5c-485c-ad16-088b57d951d3 - Trace ID: 86cf32ec-3c30-485e-9ac7-06cfe579b700
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)