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-19 19:29:19Z]: 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: 7c3405c2-cf2b-4f7f-b130-d0503b4e4f00 Correlation ID: f56b4f72-844d-4059-97cf-dbf24ef97b16 Timestamp: 2026-07-19 19:29:19Z - Correlation ID: f56b4f72-844d-4059-97cf-dbf24ef97b16 - Trace ID: 7c3405c2-cf2b-4f7f-b130-d0503b4e4f00
(node:4924) [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-19 19:29:19Z]: 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: c6880d87-ccc2-401e-a818-a6ff0e001a00 Correlation ID: f216218a-10cf-45df-a50f-46a04384d65a Timestamp: 2026-07-19 19:29:19Z - Correlation ID: f216218a-10cf-45df-a50f-46a04384d65a - Trace ID: c6880d87-ccc2-401e-a818-a6ff0e001a00
Error getting the secret: invalid_client: 7000222 - [2026-07-19 19:29:19Z]: 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: a4157b17-ebe2-4506-8063-bfd0572b0300 Correlation ID: 5bb97dff-fb84-4e4e-82ce-c6fe97961617 Timestamp: 2026-07-19 19:29:19Z - Correlation ID: 5bb97dff-fb84-4e4e-82ce-c6fe97961617 - Trace ID: a4157b17-ebe2-4506-8063-bfd0572b0300
Error getting the secret: invalid_client: 7000222 - [2026-07-19 19:29:20Z]: 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: 8b38863f-fdf7-47c7-9aa9-fac1bd581e00 Correlation ID: e8c955db-6825-4682-9f00-2a8e83aba3fe Timestamp: 2026-07-19 19:29:20Z - Correlation ID: e8c955db-6825-4682-9f00-2a8e83aba3fe - Trace ID: 8b38863f-fdf7-47c7-9aa9-fac1bd581e00
Error getting the secret: invalid_client: 7000222 - [2026-07-19 19:29:20Z]: 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: 99c5ff51-ef2a-4fa1-8b94-8cb572c81b00 Correlation ID: e635c23c-dd3c-4c1f-914f-afbdac9ddfb3 Timestamp: 2026-07-19 19:29:20Z - Correlation ID: e635c23c-dd3c-4c1f-914f-afbdac9ddfb3 - Trace ID: 99c5ff51-ef2a-4fa1-8b94-8cb572c81b00
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)