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-20 15:19:29Z]: 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: feb1e889-5338-4581-80a4-77ee2e280800 Correlation ID: 012f989e-3820-42e8-90f0-55d0234a2529 Timestamp: 2026-04-20 15:19:29Z - Correlation ID: 012f989e-3820-42e8-90f0-55d0234a2529 - Trace ID: feb1e889-5338-4581-80a4-77ee2e280800
(node:4084) [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-20 15:19:30Z]: 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: dbf92b59-93f7-4e06-b71c-d18a369b0700 Correlation ID: 9969478a-9e6c-4247-af78-fc7628fd8989 Timestamp: 2026-04-20 15:19:30Z - Correlation ID: 9969478a-9e6c-4247-af78-fc7628fd8989 - Trace ID: dbf92b59-93f7-4e06-b71c-d18a369b0700
Error getting the secret: invalid_client: 7000222 - [2026-04-20 15:19:30Z]: 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: 13e2ffa7-d607-4199-8d55-47da7e0d1100 Correlation ID: 088f5bcc-0968-4e1a-b1b2-18f3bfa7aa9f Timestamp: 2026-04-20 15:19:30Z - Correlation ID: 088f5bcc-0968-4e1a-b1b2-18f3bfa7aa9f - Trace ID: 13e2ffa7-d607-4199-8d55-47da7e0d1100
Error getting the secret: invalid_client: 7000222 - [2026-04-20 15:19:31Z]: 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: db811de9-7ad5-419b-a84e-82954cb61600 Correlation ID: ba0dc5b4-fa9f-4bb7-bb3a-7a4cef933c86 Timestamp: 2026-04-20 15:19:31Z - Correlation ID: ba0dc5b4-fa9f-4bb7-bb3a-7a4cef933c86 - Trace ID: db811de9-7ad5-419b-a84e-82954cb61600
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)