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-02-27 08:15:13Z]: 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: e8d6fe3f-5851-492a-8503-b3cb1c431d00 Correlation ID: d5cb9074-bdd8-4736-b20c-762f85247e60 Timestamp: 2026-02-27 08:15:13Z - Correlation ID: d5cb9074-bdd8-4736-b20c-762f85247e60 - Trace ID: e8d6fe3f-5851-492a-8503-b3cb1c431d00
(node:4272) [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-02-27 08:15:13Z]: 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: b13a2d8c-1a92-4e07-89b2-d5d6319e1e00 Correlation ID: 4380e796-d52a-4e56-b7d3-4ee281deda77 Timestamp: 2026-02-27 08:15:13Z - Correlation ID: 4380e796-d52a-4e56-b7d3-4ee281deda77 - Trace ID: b13a2d8c-1a92-4e07-89b2-d5d6319e1e00
Error getting the secret: invalid_client: 7000222 - [2026-02-27 08:15:14Z]: 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: f230177a-8b39-4361-94d4-5a8ddece1300 Correlation ID: ff312ada-4195-420e-80fa-993c43b2eaae Timestamp: 2026-02-27 08:15:14Z - Correlation ID: ff312ada-4195-420e-80fa-993c43b2eaae - Trace ID: f230177a-8b39-4361-94d4-5a8ddece1300
Error getting the secret: invalid_client: 7000222 - [2026-02-27 08:15:14Z]: 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: 4aff16b0-9c34-498f-952b-2d37cffb1100 Correlation ID: ff585078-5a87-4f8a-94d8-6649fcebfc0d Timestamp: 2026-02-27 08:15:14Z - Correlation ID: ff585078-5a87-4f8a-94d8-6649fcebfc0d - Trace ID: 4aff16b0-9c34-498f-952b-2d37cffb1100
Application has thrown an uncaught exception and is terminated:
TypeError: Cannot read properties of undefined (reading 'username')
at C:\vehicle_status_API\server.js:25:32
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)