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-06-12 19:33:37Z]: 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: f9eec9da-6ff9-4bb5-99e7-5e51a4a25e00 Correlation ID: 31bf6d3b-0af6-4e96-b9b0-5deb080d678a Timestamp: 2026-06-12 19:33:37Z - Correlation ID: 31bf6d3b-0af6-4e96-b9b0-5deb080d678a - Trace ID: f9eec9da-6ff9-4bb5-99e7-5e51a4a25e00
(node:1592) [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-06-12 19:33:37Z]: 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: df2dda86-4be0-4f4e-b47e-53b8e53c2900 Correlation ID: 0cdd639a-8c54-48d1-a5f5-6f4c2c985477 Timestamp: 2026-06-12 19:33:37Z - Correlation ID: 0cdd639a-8c54-48d1-a5f5-6f4c2c985477 - Trace ID: df2dda86-4be0-4f4e-b47e-53b8e53c2900
Error getting the secret: invalid_client: 7000222 - [2026-06-12 19:33:38Z]: 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: df2dda86-4be0-4f4e-b47e-53b8eb3c2900 Correlation ID: ec327df2-d5b1-4d6b-a6f3-953f24e9d284 Timestamp: 2026-06-12 19:33:38Z - Correlation ID: ec327df2-d5b1-4d6b-a6f3-953f24e9d284 - Trace ID: df2dda86-4be0-4f4e-b47e-53b8eb3c2900
Error getting the secret: invalid_client: 7000222 - [2026-06-12 19:33:38Z]: 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: f9eec9da-6ff9-4bb5-99e7-5e51bca25e00 Correlation ID: 41e5088e-a9d0-4761-b0a5-29d139c1387c Timestamp: 2026-06-12 19:33:38Z - Correlation ID: 41e5088e-a9d0-4761-b0a5-29d139c1387c - Trace ID: f9eec9da-6ff9-4bb5-99e7-5e51bca25e00
Error getting the secret: invalid_client: 7000222 - [2026-06-12 19:33:38Z]: 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: 0ec52219-987e-4012-b386-5ac2933f2a00 Correlation ID: bf61dfc5-c46e-4477-a14b-d0a9c3b9ca88 Timestamp: 2026-06-12 19:33:38Z - Correlation ID: bf61dfc5-c46e-4477-a14b-d0a9c3b9ca88 - Trace ID: 0ec52219-987e-4012-b386-5ac2933f2a00
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)