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-22 14:04:16Z]: 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: 1c675b4f-a6f1-4bb9-a02d-2dece3ca2200 Correlation ID: eb3ea32e-9f59-4741-92d5-91b904afcf83 Timestamp: 2026-04-22 14:04:16Z - Correlation ID: eb3ea32e-9f59-4741-92d5-91b904afcf83 - Trace ID: 1c675b4f-a6f1-4bb9-a02d-2dece3ca2200
(node:5144) [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-22 14:04:16Z]: 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: 06d8a087-29d7-4210-adbf-7476afa10200 Correlation ID: 01caa2fb-4cd8-4caa-8cca-3849752f206a Timestamp: 2026-04-22 14:04:16Z - Correlation ID: 01caa2fb-4cd8-4caa-8cca-3849752f206a - Trace ID: 06d8a087-29d7-4210-adbf-7476afa10200
Error getting the secret: invalid_client: 7000222 - [2026-04-22 14:04:17Z]: 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: 6141de69-3191-48d4-b4be-50ba75ba0000 Correlation ID: 93d16c89-e854-48a7-b4c3-3354f61c1c2b Timestamp: 2026-04-22 14:04:17Z - Correlation ID: 93d16c89-e854-48a7-b4c3-3354f61c1c2b - Trace ID: 6141de69-3191-48d4-b4be-50ba75ba0000
Error getting the secret: invalid_client: 7000222 - [2026-04-22 14:04:17Z]: 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: 05f64669-158e-4185-ace5-766244f42000 Correlation ID: 808eb9c0-685f-4049-95cb-4da888fbea91 Timestamp: 2026-04-22 14:04:17Z - Correlation ID: 808eb9c0-685f-4049-95cb-4da888fbea91 - Trace ID: 05f64669-158e-4185-ace5-766244f42000
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)