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-15 19:28: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: ef7cee6a-d384-4096-a01e-ddec8edc1300 Correlation ID: 63c7be91-4909-4d8d-86ae-ce394c97d978 Timestamp: 2026-07-15 19:28:35Z - Correlation ID: 63c7be91-4909-4d8d-86ae-ce394c97d978 - Trace ID: ef7cee6a-d384-4096-a01e-ddec8edc1300
(node:4560) [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-15 19:28: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: 02356c72-3e79-427b-b204-069844a81f00 Correlation ID: 1425652d-242b-436c-8d38-b038bbddc792 Timestamp: 2026-07-15 19:28:35Z - Correlation ID: 1425652d-242b-436c-8d38-b038bbddc792 - Trace ID: 02356c72-3e79-427b-b204-069844a81f00
Error getting the secret: invalid_client: 7000222 - [2026-07-15 19:28: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: fb3eaf32-d895-447f-bc2a-5b4c08f11e00 Correlation ID: f41a4357-36a5-49db-998d-2c7d0a811943 Timestamp: 2026-07-15 19:28:35Z - Correlation ID: f41a4357-36a5-49db-998d-2c7d0a811943 - Trace ID: fb3eaf32-d895-447f-bc2a-5b4c08f11e00
Error getting the secret: invalid_client: 7000222 - [2026-07-15 19:28:36Z]: 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: ef7cee6a-d384-4096-a01e-ddeca4dc1300 Correlation ID: e3e4fb6e-8ed4-45fb-a3d0-479d2d2cc8dc Timestamp: 2026-07-15 19:28:36Z - Correlation ID: e3e4fb6e-8ed4-45fb-a3d0-479d2d2cc8dc - Trace ID: ef7cee6a-d384-4096-a01e-ddeca4dc1300
Error getting the secret: invalid_client: 7000222 - [2026-07-15 19:28:36Z]: 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: c9bdcce4-7b4f-47e6-a42a-c58da70f2000 Correlation ID: 9bc27baf-33de-47ed-9cea-5a1e73bfc324 Timestamp: 2026-07-15 19:28:36Z - Correlation ID: 9bc27baf-33de-47ed-9cea-5a1e73bfc324 - Trace ID: c9bdcce4-7b4f-47e6-a42a-c58da70f2000
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)