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-09 03:23: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: 79837304-1096-4746-839d-a6179eb73500 Correlation ID: 9d30ca62-e7b6-4a88-846d-357e2ce5c21b Timestamp: 2026-07-09 03:23:37Z - Correlation ID: 9d30ca62-e7b6-4a88-846d-357e2ce5c21b - Trace ID: 79837304-1096-4746-839d-a6179eb73500
(node:5948) [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-09 03:23: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: 79837304-1096-4746-839d-a617a3b73500 Correlation ID: ed9937a3-98fc-4713-a733-f7617565f94f Timestamp: 2026-07-09 03:23:37Z - Correlation ID: ed9937a3-98fc-4713-a733-f7617565f94f - Trace ID: 79837304-1096-4746-839d-a617a3b73500
Error getting the secret: invalid_client: 7000222 - [2026-07-09 03:23: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: e161b348-6704-468c-bf03-af4ce5fe3800 Correlation ID: 697c87f8-f10e-4273-9243-c184dd3d95b6 Timestamp: 2026-07-09 03:23:37Z - Correlation ID: 697c87f8-f10e-4273-9243-c184dd3d95b6 - Trace ID: e161b348-6704-468c-bf03-af4ce5fe3800
Error getting the secret: invalid_client: 7000222 - [2026-07-09 03:23: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: c4479dc9-7952-444f-9852-9ad2195a3e00 Correlation ID: 788a3e52-1eb7-403c-8bf1-ee66a0d3a5ef Timestamp: 2026-07-09 03:23:37Z - Correlation ID: 788a3e52-1eb7-403c-8bf1-ee66a0d3a5ef - Trace ID: c4479dc9-7952-444f-9852-9ad2195a3e00
Error getting the secret: invalid_client: 7000222 - [2026-07-09 03:23: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: 03514a8a-69eb-49be-b321-8f29342f6800 Correlation ID: 7c7bcb5b-8ea2-44db-bebb-d5557e1a467b Timestamp: 2026-07-09 03:23:37Z - Correlation ID: 7c7bcb5b-8ea2-44db-bebb-d5557e1a467b - Trace ID: 03514a8a-69eb-49be-b321-8f29342f6800
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)