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-11 16:46:29Z]: 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: 9f383bfc-caec-48ea-b5bd-e2b73b5dca00 Correlation ID: 5e68669c-a501-4048-ba45-025a28edb6c2 Timestamp: 2026-07-11 16:46:29Z - Correlation ID: 5e68669c-a501-4048-ba45-025a28edb6c2 - Trace ID: 9f383bfc-caec-48ea-b5bd-e2b73b5dca00
(node:4260) [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-11 16:46:29Z]: 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: fc9f69cd-c22f-4093-b918-d6c045ff0200 Correlation ID: 5fd2d91f-5d8f-4d30-a1ce-a0d845665d77 Timestamp: 2026-07-11 16:46:29Z - Correlation ID: 5fd2d91f-5d8f-4d30-a1ce-a0d845665d77 - Trace ID: fc9f69cd-c22f-4093-b918-d6c045ff0200
Error getting the secret: invalid_client: 7000222 - [2026-07-11 16:46:29Z]: 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: 0ed87bf7-1d73-483a-b975-0f5980be2300 Correlation ID: 3779e445-d501-4be4-93d6-bbffd589e127 Timestamp: 2026-07-11 16:46:29Z - Correlation ID: 3779e445-d501-4be4-93d6-bbffd589e127 - Trace ID: 0ed87bf7-1d73-483a-b975-0f5980be2300
Error getting the secret: invalid_client: 7000222 - [2026-07-11 16:46:29Z]: 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: 0ed87bf7-1d73-483a-b975-0f5985be2300 Correlation ID: 15dfffc4-57c3-4143-9cbb-5a0785b67aba Timestamp: 2026-07-11 16:46:29Z - Correlation ID: 15dfffc4-57c3-4143-9cbb-5a0785b67aba - Trace ID: 0ed87bf7-1d73-483a-b975-0f5985be2300
Error getting the secret: invalid_client: 7000222 - [2026-07-11 16:46:30Z]: 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: 13915ab5-6d38-4076-bd72-61db7a613800 Correlation ID: abb2d2b5-5397-496a-8e2a-4e087b292936 Timestamp: 2026-07-11 16:46:30Z - Correlation ID: abb2d2b5-5397-496a-8e2a-4e087b292936 - Trace ID: 13915ab5-6d38-4076-bd72-61db7a613800
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)