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-12 21:24:34Z]: 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: dc8ed09f-5e59-49bb-bf37-827f17430100 Correlation ID: ec9f367d-1d6d-4670-81f1-9bb6909eb36c Timestamp: 2026-04-12 21:24:34Z - Correlation ID: ec9f367d-1d6d-4670-81f1-9bb6909eb36c - Trace ID: dc8ed09f-5e59-49bb-bf37-827f17430100
(node:388) [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-12 21:24: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: ac06167b-7bec-4d0e-a440-e94b6c392b00 Correlation ID: 9c809dfc-ff33-4c61-82a8-bb9a4f6905c8 Timestamp: 2026-04-12 21:24:35Z - Correlation ID: 9c809dfc-ff33-4c61-82a8-bb9a4f6905c8 - Trace ID: ac06167b-7bec-4d0e-a440-e94b6c392b00
Error getting the secret: invalid_client: 7000222 - [2026-04-12 21:24: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: 4dcca418-08a5-45ad-8f84-17f4791b3a00 Correlation ID: ec95381c-235e-4e3c-9a45-e96c8dc12c32 Timestamp: 2026-04-12 21:24:35Z - Correlation ID: ec95381c-235e-4e3c-9a45-e96c8dc12c32 - Trace ID: 4dcca418-08a5-45ad-8f84-17f4791b3a00
Error getting the secret: invalid_client: 7000222 - [2026-04-12 21:24: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: ac06167b-7bec-4d0e-a440-e94b79392b00 Correlation ID: a7df471c-c7f4-4fdc-ad94-1b805fde626b Timestamp: 2026-04-12 21:24:35Z - Correlation ID: a7df471c-c7f4-4fdc-ad94-1b805fde626b - Trace ID: ac06167b-7bec-4d0e-a440-e94b79392b00
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)