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-23 13:37:35Z]: 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: 896b703a-ab7e-4a4f-b72f-a53085f60500 Correlation ID: a655750c-24f5-4a5c-b8c3-4a4eb9efce50 Timestamp: 2026-04-23 13:37:35Z - Correlation ID: a655750c-24f5-4a5c-b8c3-4a4eb9efce50 - Trace ID: 896b703a-ab7e-4a4f-b72f-a53085f60500
(node:3096) [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-23 13:37:35Z]: 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: b2f041bd-79d5-471b-bea3-544d28b44500 Correlation ID: 9122cb9f-3523-463b-a13c-8368110c4b35 Timestamp: 2026-04-23 13:37:35Z - Correlation ID: 9122cb9f-3523-463b-a13c-8368110c4b35 - Trace ID: b2f041bd-79d5-471b-bea3-544d28b44500
Error getting the secret: invalid_client: 7000222 - [2026-04-23 13:37:35Z]: 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: d4e74ad8-6c5e-48c4-93fa-f5e501cb2200 Correlation ID: e28defe7-d31d-4fa2-b173-35dd070aacd1 Timestamp: 2026-04-23 13:37:35Z - Correlation ID: e28defe7-d31d-4fa2-b173-35dd070aacd1 - Trace ID: d4e74ad8-6c5e-48c4-93fa-f5e501cb2200
Error getting the secret: invalid_client: 7000222 - [2026-04-23 13:37:35Z]: 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: 1760fac4-a0d1-4211-be36-e58f8e000800 Correlation ID: 110a0b03-e3f0-41db-8ca1-5685bdd29798 Timestamp: 2026-04-23 13:37:35Z - Correlation ID: 110a0b03-e3f0-41db-8ca1-5685bdd29798 - Trace ID: 1760fac4-a0d1-4211-be36-e58f8e000800
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)