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-26 06:26:15Z]: 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: 3d2584ac-e699-4386-b2b4-bd2c46702400 Correlation ID: 0136ec3f-3c11-4e6f-958a-d525680a41dd Timestamp: 2026-04-26 06:26:15Z - Correlation ID: 0136ec3f-3c11-4e6f-958a-d525680a41dd - Trace ID: 3d2584ac-e699-4386-b2b4-bd2c46702400
(node:2596) [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-26 06:26: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: 3d2584ac-e699-4386-b2b4-bd2c4c702400 Correlation ID: ceb5009d-b09c-47f3-b321-92e383f366af Timestamp: 2026-04-26 06:26:16Z - Correlation ID: ceb5009d-b09c-47f3-b321-92e383f366af - Trace ID: 3d2584ac-e699-4386-b2b4-bd2c4c702400
Error getting the secret: invalid_client: 7000222 - [2026-04-26 06:26: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: e1f469e0-9ec2-43f9-8742-43af53ca1500 Correlation ID: a9aacb73-fe7f-4dc6-91b3-69db8237d816 Timestamp: 2026-04-26 06:26:16Z - Correlation ID: a9aacb73-fe7f-4dc6-91b3-69db8237d816 - Trace ID: e1f469e0-9ec2-43f9-8742-43af53ca1500
Error getting the secret: invalid_client: 7000222 - [2026-04-26 06:26: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: d2bdd9d9-f74f-4798-a1c4-f89eb1291d00 Correlation ID: cd93d4ab-cc97-4fac-8c57-a3eb9ade57a9 Timestamp: 2026-04-26 06:26:16Z - Correlation ID: cd93d4ab-cc97-4fac-8c57-a3eb9ade57a9 - Trace ID: d2bdd9d9-f74f-4798-a1c4-f89eb1291d00
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)