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 - [2025-11-17 23:22:06Z]: 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: 0b420b27-ffd2-4244-b2ef-3557e8563800 Correlation ID: ac0eb4cd-bb83-4629-85c3-c3e387a9cc9c Timestamp: 2025-11-17 23:22:06Z - Correlation ID: ac0eb4cd-bb83-4629-85c3-c3e387a9cc9c - Trace ID: 0b420b27-ffd2-4244-b2ef-3557e8563800
(node:4684) [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 - [2025-11-17 23:22:07Z]: 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: 42cda436-789d-4d98-b648-992b6ba14500 Correlation ID: 1ea34063-0291-42c8-99ee-bd1d9196a1eb Timestamp: 2025-11-17 23:22:07Z - Correlation ID: 1ea34063-0291-42c8-99ee-bd1d9196a1eb - Trace ID: 42cda436-789d-4d98-b648-992b6ba14500
Error getting the secret: invalid_client: 7000222 - [2025-11-17 23:22:07Z]: 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: f176f6f0-3f85-4b10-a4a7-363aada03c00 Correlation ID: 843a64f2-1610-4ffb-bdf4-c2ed62b9d812 Timestamp: 2025-11-17 23:22:07Z - Correlation ID: 843a64f2-1610-4ffb-bdf4-c2ed62b9d812 - Trace ID: f176f6f0-3f85-4b10-a4a7-363aada03c00
Error getting the secret: invalid_client: 7000222 - [2025-11-17 23:22:07Z]: 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: 5cdf4b2f-74c4-479f-9443-4ac7f8343d00 Correlation ID: 0fa85ec6-cb27-4e63-a85f-9dbea567c02d Timestamp: 2025-11-17 23:22:07Z - Correlation ID: 0fa85ec6-cb27-4e63-a85f-9dbea567c02d - Trace ID: 5cdf4b2f-74c4-479f-9443-4ac7f8343d00
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)