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 09:37:24Z]: 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: fe9e71b0-8b90-4c2e-9f6a-e99ba1c64a00 Correlation ID: ea8214e8-8da0-4f7e-80e0-1228e1c00576 Timestamp: 2026-07-19 09:37:24Z - Correlation ID: ea8214e8-8da0-4f7e-80e0-1228e1c00576 - Trace ID: fe9e71b0-8b90-4c2e-9f6a-e99ba1c64a00
(node:1232) [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 09:37:24Z]: 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: 3d80ab05-19e2-4be6-9aaf-ff9e4a7b1300 Correlation ID: 53b4a53c-1806-4fee-93c6-1e818107ccfa Timestamp: 2026-07-19 09:37:24Z - Correlation ID: 53b4a53c-1806-4fee-93c6-1e818107ccfa - Trace ID: 3d80ab05-19e2-4be6-9aaf-ff9e4a7b1300
Error getting the secret: invalid_client: 7000222 - [2026-07-19 09:37:25Z]: 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: 5353426c-f419-4891-89a2-5968012d4c00 Correlation ID: 5c3b1a0b-b4fa-495c-9813-6aefb810905d Timestamp: 2026-07-19 09:37:25Z - Correlation ID: 5c3b1a0b-b4fa-495c-9813-6aefb810905d - Trace ID: 5353426c-f419-4891-89a2-5968012d4c00
Error getting the secret: invalid_client: 7000222 - [2026-07-19 09:37:25Z]: 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: 31c116c4-73cf-4d9c-9e14-1b4139b61300 Correlation ID: 6b9f8f56-af65-4f62-812c-04a998d1a5eb Timestamp: 2026-07-19 09:37:25Z - Correlation ID: 6b9f8f56-af65-4f62-812c-04a998d1a5eb - Trace ID: 31c116c4-73cf-4d9c-9e14-1b4139b61300
Error getting the secret: invalid_client: 7000222 - [2026-07-19 09:37:25Z]: 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: 3d80ab05-19e2-4be6-9aaf-ff9e557b1300 Correlation ID: bce3b115-c346-4d2e-90bb-eb2b3e9aa361 Timestamp: 2026-07-19 09:37:25Z - Correlation ID: bce3b115-c346-4d2e-90bb-eb2b3e9aa361 - Trace ID: 3d80ab05-19e2-4be6-9aaf-ff9e557b1300
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)