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-04 05:32:53Z]: 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: 59eefb87-9232-45b5-bcc7-ca278f940300 Correlation ID: 074e30cf-ddf6-43e6-8f56-66be11c7e8fc Timestamp: 2026-07-04 05:32:53Z - Correlation ID: 074e30cf-ddf6-43e6-8f56-66be11c7e8fc - Trace ID: 59eefb87-9232-45b5-bcc7-ca278f940300
(node:5172) [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-04 05:32:53Z]: 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: 5ad9dedd-4feb-4c21-b976-2e9ba6290600 Correlation ID: d4284b44-e1f7-48de-8897-62b71268e99e Timestamp: 2026-07-04 05:32:53Z - Correlation ID: d4284b44-e1f7-48de-8897-62b71268e99e - Trace ID: 5ad9dedd-4feb-4c21-b976-2e9ba6290600
Error getting the secret: invalid_client: 7000222 - [2026-07-04 05:32:54Z]: 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: 07cf848e-4e9f-4cde-b1d9-f1f5e75b0300 Correlation ID: 8b60c866-0340-44c0-9272-243e0a61080d Timestamp: 2026-07-04 05:32:54Z - Correlation ID: 8b60c866-0340-44c0-9272-243e0a61080d - Trace ID: 07cf848e-4e9f-4cde-b1d9-f1f5e75b0300
Error getting the secret: invalid_client: 7000222 - [2026-07-04 05:32:54Z]: 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: 7a482bc5-dc00-47dc-bf3e-90748a9e0300 Correlation ID: 72cb8585-524f-4662-84aa-ce8d9968a19a Timestamp: 2026-07-04 05:32:54Z - Correlation ID: 72cb8585-524f-4662-84aa-ce8d9968a19a - Trace ID: 7a482bc5-dc00-47dc-bf3e-90748a9e0300
Error getting the secret: invalid_client: 7000222 - [2026-07-04 05:32:55Z]: 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: 7a482bc5-dc00-47dc-bf3e-90748d9e0300 Correlation ID: da9b3d31-0706-498f-be8a-131f874c2fae Timestamp: 2026-07-04 05:32:55Z - Correlation ID: da9b3d31-0706-498f-be8a-131f874c2fae - Trace ID: 7a482bc5-dc00-47dc-bf3e-90748d9e0300
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)