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-10-07 11:53:58Z]: 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: 3b167171-81de-48c9-8877-f544b1931f00 Correlation ID: 9146dd22-26a6-4749-a998-02fe54cf2b58 Timestamp: 2026-10-07 11:53:58Z - Correlation ID: 9146dd22-26a6-4749-a998-02fe54cf2b58 - Trace ID: 3b167171-81de-48c9-8877-f544b1931f00
(node:4100) [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-10-07 11:53:58Z]: 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: b681cbaa-cd46-4b15-9970-74c3ec1a2100 Correlation ID: 2b1c803c-5746-43db-ab83-246a90e1880c Timestamp: 2026-10-07 11:53:58Z - Correlation ID: 2b1c803c-5746-43db-ab83-246a90e1880c - Trace ID: b681cbaa-cd46-4b15-9970-74c3ec1a2100
Error getting the secret: invalid_client: 7000222 - [2026-10-07 11:53:59Z]: 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: 08d53259-0f84-45e8-9728-3ead1c932300 Correlation ID: 0fd21f8f-06ca-4f5c-95b0-4f9cd1cd569c Timestamp: 2026-10-07 11:53:59Z - Correlation ID: 0fd21f8f-06ca-4f5c-95b0-4f9cd1cd569c - Trace ID: 08d53259-0f84-45e8-9728-3ead1c932300
Error getting the secret: invalid_client: 7000222 - [2026-10-07 11:53:59Z]: 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: eb22aea8-1cf8-400a-a433-4ba0d9772300 Correlation ID: 3b2b9a09-86c6-4ec8-a29e-9d42085474fd Timestamp: 2026-10-07 11:53:59Z - Correlation ID: 3b2b9a09-86c6-4ec8-a29e-9d42085474fd - Trace ID: eb22aea8-1cf8-400a-a433-4ba0d9772300
Application has thrown an uncaught exception and is terminated:
TypeError: Cannot read properties of undefined (reading 'username')
at C:\vehicle_status_API\server.js:25:32
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)