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-25 00:33: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: df156255-1112-41d9-9824-293af8901300 Correlation ID: d4e40399-8078-4427-b650-d4edb1c748d9 Timestamp: 2026-07-25 00:33:19Z - Correlation ID: d4e40399-8078-4427-b650-d4edb1c748d9 - Trace ID: df156255-1112-41d9-9824-293af8901300
(node:3292) [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-25 00:33: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: d69a4b42-6f63-4bca-97f7-717201883400 Correlation ID: 24f9de8b-2f1e-47fc-b953-63a83ac82a92 Timestamp: 2026-07-25 00:33:20Z - Correlation ID: 24f9de8b-2f1e-47fc-b953-63a83ac82a92 - Trace ID: d69a4b42-6f63-4bca-97f7-717201883400
Error getting the secret: invalid_client: 7000222 - [2026-07-25 00:33: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: 29bd7371-5e17-4a29-9089-be0333ce1400 Correlation ID: e0766e57-4f76-419b-8a40-995238c256e3 Timestamp: 2026-07-25 00:33:20Z - Correlation ID: e0766e57-4f76-419b-8a40-995238c256e3 - Trace ID: 29bd7371-5e17-4a29-9089-be0333ce1400
Error getting the secret: invalid_client: 7000222 - [2026-07-25 00:33: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: 436f0a6b-85f9-4b04-baca-9de55bc52000 Correlation ID: 366ad21b-db56-4b66-a3f5-40e106e52801 Timestamp: 2026-07-25 00:33:20Z - Correlation ID: 366ad21b-db56-4b66-a3f5-40e106e52801 - Trace ID: 436f0a6b-85f9-4b04-baca-9de55bc52000
Error getting the secret: invalid_client: 7000222 - [2026-07-25 00:33: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: de812f32-3304-4afc-a3a3-76d79f051a00 Correlation ID: cddd14ce-79cf-425e-9fbb-2d6b7979b70c Timestamp: 2026-07-25 00:33:20Z - Correlation ID: cddd14ce-79cf-425e-9fbb-2d6b7979b70c - Trace ID: de812f32-3304-4afc-a3a3-76d79f051a00
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)