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-16 21:26:40Z]: 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: ec14fe2e-0c14-483b-b027-4c641cc53800 Correlation ID: 9f4db45b-7daa-4508-964d-3c7dd06ab368 Timestamp: 2026-07-16 21:26:40Z - Correlation ID: 9f4db45b-7daa-4508-964d-3c7dd06ab368 - Trace ID: ec14fe2e-0c14-483b-b027-4c641cc53800
(node:1780) [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-16 21:26:40Z]: 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: c7a5fc0b-c957-493c-ba0e-f5b2cb103300 Correlation ID: 7647e997-5ae5-40b5-b094-3c5408ed4fd7 Timestamp: 2026-07-16 21:26:40Z - Correlation ID: 7647e997-5ae5-40b5-b094-3c5408ed4fd7 - Trace ID: c7a5fc0b-c957-493c-ba0e-f5b2cb103300
Error getting the secret: invalid_client: 7000222 - [2026-07-16 21:26:40Z]: 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: e95c27ac-89f7-437d-9bda-1f33fd761900 Correlation ID: 4a26188c-d120-4f4f-9bfa-26c8343ce895 Timestamp: 2026-07-16 21:26:40Z - Correlation ID: 4a26188c-d120-4f4f-9bfa-26c8343ce895 - Trace ID: e95c27ac-89f7-437d-9bda-1f33fd761900
Error getting the secret: invalid_client: 7000222 - [2026-07-16 21:26:40Z]: 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: ec14fe2e-0c14-483b-b027-4c6428c53800 Correlation ID: f0bc710a-bc30-4412-8740-e7577c788bfa Timestamp: 2026-07-16 21:26:40Z - Correlation ID: f0bc710a-bc30-4412-8740-e7577c788bfa - Trace ID: ec14fe2e-0c14-483b-b027-4c6428c53800
Error getting the secret: invalid_client: 7000222 - [2026-07-16 21:26:40Z]: 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: 6a49b3c0-250f-4fbc-8160-5da79d683c00 Correlation ID: 75a95f13-f9d0-4728-83d3-036093f1c804 Timestamp: 2026-07-16 21:26:40Z - Correlation ID: 75a95f13-f9d0-4728-83d3-036093f1c804 - Trace ID: 6a49b3c0-250f-4fbc-8160-5da79d683c00
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)