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-25 17:25:12Z]: 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: 35c2eb21-977c-4558-8ca7-7ec464b21500 Correlation ID: e5cbdad3-234c-43a3-82f3-4d6d196286ee Timestamp: 2026-04-25 17:25:12Z - Correlation ID: e5cbdad3-234c-43a3-82f3-4d6d196286ee - Trace ID: 35c2eb21-977c-4558-8ca7-7ec464b21500
(node:5424) [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-25 17:25:12Z]: 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: 9c471ec7-0321-4d24-852c-c27cb9371000 Correlation ID: 0cafe668-2462-42d1-a3cc-8289a9e3a882 Timestamp: 2026-04-25 17:25:12Z - Correlation ID: 0cafe668-2462-42d1-a3cc-8289a9e3a882 - Trace ID: 9c471ec7-0321-4d24-852c-c27cb9371000
Error getting the secret: invalid_client: 7000222 - [2026-04-25 17:25:12Z]: 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: 6999dd48-3af8-4947-89b0-cd17aff31300 Correlation ID: d411202f-3184-47ee-8a93-bd5db45794c6 Timestamp: 2026-04-25 17:25:12Z - Correlation ID: d411202f-3184-47ee-8a93-bd5db45794c6 - Trace ID: 6999dd48-3af8-4947-89b0-cd17aff31300
Error getting the secret: invalid_client: 7000222 - [2026-04-25 17:25:12Z]: 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: 9c471ec7-0321-4d24-852c-c27cbd371000 Correlation ID: 3809f047-6d46-4bcd-840b-f2f23b37d342 Timestamp: 2026-04-25 17:25:12Z - Correlation ID: 3809f047-6d46-4bcd-840b-f2f23b37d342 - Trace ID: 9c471ec7-0321-4d24-852c-c27cbd371000
Error getting the secret: invalid_client: 7000222 - [2026-04-25 17:25:12Z]: 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: 6999dd48-3af8-4947-89b0-cd17b9f31300 Correlation ID: e82742ea-c1a1-446d-b2f4-0ca977ada576 Timestamp: 2026-04-25 17:25:12Z - Correlation ID: e82742ea-c1a1-446d-b2f4-0ca977ada576 - Trace ID: 6999dd48-3af8-4947-89b0-cd17b9f31300
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)