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-07-10 11:25:15Z]: 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: 1fc9626d-ad98-4301-8e33-94876d60a300 Correlation ID: 9a9c86a0-bc7f-4408-94bd-3d7a7ee37a9d Timestamp: 2026-07-10 11:25:15Z - Correlation ID: 9a9c86a0-bc7f-4408-94bd-3d7a7ee37a9d - Trace ID: 1fc9626d-ad98-4301-8e33-94876d60a300
(node:2956) [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-07-10 11:25:15Z]: 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: d578bdb8-4c75-4205-bddc-8b48d647ad00 Correlation ID: 2541c250-d122-4305-afaf-fb6cab30dd4b Timestamp: 2026-07-10 11:25:15Z - Correlation ID: 2541c250-d122-4305-afaf-fb6cab30dd4b - Trace ID: d578bdb8-4c75-4205-bddc-8b48d647ad00
Error getting the secret: invalid_client: 7000222 - [2026-07-10 11:25:15Z]: 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: e35a5c82-c76c-4f43-ab4f-1d5020838900 Correlation ID: 5a1c856a-fb0e-4c2a-87bf-55e0e149b69d Timestamp: 2026-07-10 11:25:15Z - Correlation ID: 5a1c856a-fb0e-4c2a-87bf-55e0e149b69d - Trace ID: e35a5c82-c76c-4f43-ab4f-1d5020838900
Error getting the secret: invalid_client: 7000222 - [2026-07-10 11:25:15Z]: 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: e733616c-306f-4ad8-9322-3ca6f60a0200 Correlation ID: dce6f898-38fb-498d-9358-1f95ecc47847 Timestamp: 2026-07-10 11:25:15Z - Correlation ID: dce6f898-38fb-498d-9358-1f95ecc47847 - Trace ID: e733616c-306f-4ad8-9322-3ca6f60a0200
Error getting the secret: invalid_client: 7000222 - [2026-07-10 11:25:16Z]: 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: e35a5c82-c76c-4f43-ab4f-1d5027838900 Correlation ID: cf3289f3-8d02-4cc8-b70d-fc434e83a400 Timestamp: 2026-07-10 11:25:16Z - Correlation ID: cf3289f3-8d02-4cc8-b70d-fc434e83a400 - Trace ID: e35a5c82-c76c-4f43-ab4f-1d5027838900
Application has thrown an uncaught exception and is terminated:
TypeError: Cannot read properties of undefined (reading 'username')
at C:\vehicle_status_API\server.js:30:32
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)