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-04-28 04:23:21Z]: 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: e6a02ee4-5daa-4322-a88e-8ab055ec5a00 Correlation ID: 28255e56-2bb9-4c77-9e53-40e180181ad3 Timestamp: 2026-04-28 04:23:21Z - Correlation ID: 28255e56-2bb9-4c77-9e53-40e180181ad3 - Trace ID: e6a02ee4-5daa-4322-a88e-8ab055ec5a00
(node:3524) [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-04-28 04:23:22Z]: 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: cf9bb6f8-3310-450f-9657-632ffbd28800 Correlation ID: a8e69ee9-9ddf-4103-a5a3-98df5d89145d Timestamp: 2026-04-28 04:23:22Z - Correlation ID: a8e69ee9-9ddf-4103-a5a3-98df5d89145d - Trace ID: cf9bb6f8-3310-450f-9657-632ffbd28800
Error getting the secret: invalid_client: 7000222 - [2026-04-28 04:23:22Z]: 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: cf9bb6f8-3310-450f-9657-632f03d38800 Correlation ID: 2e1d9407-e339-4465-8a11-27db7452249e Timestamp: 2026-04-28 04:23:22Z - Correlation ID: 2e1d9407-e339-4465-8a11-27db7452249e - Trace ID: cf9bb6f8-3310-450f-9657-632f03d38800
Error getting the secret: invalid_client: 7000222 - [2026-04-28 04:23:22Z]: 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: 0ec2ca04-9e2c-45d2-a0e9-39118afb4500 Correlation ID: 177ca58f-63bd-4fe0-9428-b1c46cc7cf6d Timestamp: 2026-04-28 04:23:22Z - Correlation ID: 177ca58f-63bd-4fe0-9428-b1c46cc7cf6d - Trace ID: 0ec2ca04-9e2c-45d2-a0e9-39118afb4500
Error getting the secret: invalid_client: 7000222 - [2026-04-28 04:23:23Z]: 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: e6a02ee4-5daa-4322-a88e-8ab066ec5a00 Correlation ID: 69c379b4-60c5-4aa9-822c-c37d960ab3f7 Timestamp: 2026-04-28 04:23:23Z - Correlation ID: 69c379b4-60c5-4aa9-822c-c37d960ab3f7 - Trace ID: e6a02ee4-5daa-4322-a88e-8ab066ec5a00
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)