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-30 02:13:26Z]: 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: e974300c-9ca4-43fa-a0f8-3b7a1a958b00 Correlation ID: df633d28-b4af-4aa1-afdb-23f4778a5ce8 Timestamp: 2026-04-30 02:13:26Z - Correlation ID: df633d28-b4af-4aa1-afdb-23f4778a5ce8 - Trace ID: e974300c-9ca4-43fa-a0f8-3b7a1a958b00
(node:2080) [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-30 02:13:26Z]: 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: 2962d035-2449-4e10-9e08-fb6f8a2d0300 Correlation ID: d91d686f-084e-4890-b13b-e35eac22f797 Timestamp: 2026-04-30 02:13:26Z - Correlation ID: d91d686f-084e-4890-b13b-e35eac22f797 - Trace ID: 2962d035-2449-4e10-9e08-fb6f8a2d0300
Error getting the secret: invalid_client: 7000222 - [2026-04-30 02:13:26Z]: 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: a378d35a-7833-46bf-9df2-05897e598c00 Correlation ID: 3105eb6e-d87f-40ad-83d6-c59190d65995 Timestamp: 2026-04-30 02:13:26Z - Correlation ID: 3105eb6e-d87f-40ad-83d6-c59190d65995 - Trace ID: a378d35a-7833-46bf-9df2-05897e598c00
Error getting the secret: invalid_client: 7000222 - [2026-04-30 02:13:27Z]: 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: 24c018be-80e4-4732-a856-3c6f55fc1200 Correlation ID: b5d5fcb6-e8d8-47d4-9936-9de3a242ace8 Timestamp: 2026-04-30 02:13:27Z - Correlation ID: b5d5fcb6-e8d8-47d4-9936-9de3a242ace8 - Trace ID: 24c018be-80e4-4732-a856-3c6f55fc1200
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)