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-19 22:15:23Z]: 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: dbaf4674-dd5c-4dfc-b7a9-75c3cb930200 Correlation ID: fe914dcf-5d83-472e-a547-aa894a7f5ee9 Timestamp: 2026-04-19 22:15:23Z - Correlation ID: fe914dcf-5d83-472e-a547-aa894a7f5ee9 - Trace ID: dbaf4674-dd5c-4dfc-b7a9-75c3cb930200
(node:380) [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-19 22:15:23Z]: 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: aa35b43c-a9a3-4c7d-a4a0-09b701680400 Correlation ID: 642a1a83-4595-420c-9bdf-e78369f7efca Timestamp: 2026-04-19 22:15:23Z - Correlation ID: 642a1a83-4595-420c-9bdf-e78369f7efca - Trace ID: aa35b43c-a9a3-4c7d-a4a0-09b701680400
Error getting the secret: invalid_client: 7000222 - [2026-04-19 22:15:24Z]: 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: 3af79bba-5e93-444b-a617-4e76a33a0200 Correlation ID: aba1f1eb-b2fc-4ca6-8765-48f3efded266 Timestamp: 2026-04-19 22:15:24Z - Correlation ID: aba1f1eb-b2fc-4ca6-8765-48f3efded266 - Trace ID: 3af79bba-5e93-444b-a617-4e76a33a0200
Error getting the secret: invalid_client: 7000222 - [2026-04-19 22:15:24Z]: 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: dbaf4674-dd5c-4dfc-b7a9-75c3d8930200 Correlation ID: f40e8f22-8806-4e9e-b1fb-4a9c64894592 Timestamp: 2026-04-19 22:15:24Z - Correlation ID: f40e8f22-8806-4e9e-b1fb-4a9c64894592 - Trace ID: dbaf4674-dd5c-4dfc-b7a9-75c3d8930200
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)