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 17:50:08Z]: 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: c11a60c7-639d-4950-9bae-3f0a54241300 Correlation ID: 7a937855-ee1a-4396-989e-78fdc8c684f9 Timestamp: 2026-07-19 17:50:08Z - Correlation ID: 7a937855-ee1a-4396-989e-78fdc8c684f9 - Trace ID: c11a60c7-639d-4950-9bae-3f0a54241300
(node:4492) [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 17:50:08Z]: 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: b1f927ce-01bd-4a63-a31a-ea27767b1a00 Correlation ID: ae06a1ad-3d9f-412f-a9fb-0c61401cfcd5 Timestamp: 2026-07-19 17:50:08Z - Correlation ID: ae06a1ad-3d9f-412f-a9fb-0c61401cfcd5 - Trace ID: b1f927ce-01bd-4a63-a31a-ea27767b1a00
Error getting the secret: invalid_client: 7000222 - [2026-07-19 17:50:09Z]: 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: ffde0d31-d2d8-4299-8f14-b7d4f5725000 Correlation ID: 85f65e2d-f971-45fb-8dfd-d184190cc02e Timestamp: 2026-07-19 17:50:09Z - Correlation ID: 85f65e2d-f971-45fb-8dfd-d184190cc02e - Trace ID: ffde0d31-d2d8-4299-8f14-b7d4f5725000
Error getting the secret: invalid_client: 7000222 - [2026-07-19 17:50:09Z]: 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: ffde0d31-d2d8-4299-8f14-b7d4f9725000 Correlation ID: 5939a064-9d07-44eb-9ad1-6635b01b803e Timestamp: 2026-07-19 17:50:09Z - Correlation ID: 5939a064-9d07-44eb-9ad1-6635b01b803e - Trace ID: ffde0d31-d2d8-4299-8f14-b7d4f9725000
Error getting the secret: invalid_client: 7000222 - [2026-07-19 17:50:09Z]: 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: 8f29f425-f5a2-4f05-bb67-bca7f9d01d00 Correlation ID: 1c6c9026-a761-4ae8-ba37-bb38d88bc324 Timestamp: 2026-07-19 17:50:09Z - Correlation ID: 1c6c9026-a761-4ae8-ba37-bb38d88bc324 - Trace ID: 8f29f425-f5a2-4f05-bb67-bca7f9d01d00
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)