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-04 19:30:06Z]: 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: a2163138-6f0d-4b1d-aa62-f1f241b00b00 Correlation ID: c4381568-c45c-409e-a346-2e0e3d978517 Timestamp: 2026-07-04 19:30:06Z - Correlation ID: c4381568-c45c-409e-a346-2e0e3d978517 - Trace ID: a2163138-6f0d-4b1d-aa62-f1f241b00b00
(node:1188) [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-04 19:30:06Z]: 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: 758750bd-43fd-4efc-9d1a-b1a365a70c00 Correlation ID: f116030e-39bc-4f03-82ed-0bb6b1a6a525 Timestamp: 2026-07-04 19:30:06Z - Correlation ID: f116030e-39bc-4f03-82ed-0bb6b1a6a525 - Trace ID: 758750bd-43fd-4efc-9d1a-b1a365a70c00
Error getting the secret: invalid_client: 7000222 - [2026-07-04 19:30:06Z]: 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: 3fbe7669-9904-48f4-ac69-a98c7c130e00 Correlation ID: 42295201-f9db-4521-a498-386d7d369afb Timestamp: 2026-07-04 19:30:06Z - Correlation ID: 42295201-f9db-4521-a498-386d7d369afb - Trace ID: 3fbe7669-9904-48f4-ac69-a98c7c130e00
Error getting the secret: invalid_client: 7000222 - [2026-07-04 19:30:06Z]: 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: 7f28a033-4b3a-4a8d-9ed5-5ff8c52a0f00 Correlation ID: 2101fa61-9204-4236-ab57-5e14d066d201 Timestamp: 2026-07-04 19:30:06Z - Correlation ID: 2101fa61-9204-4236-ab57-5e14d066d201 - Trace ID: 7f28a033-4b3a-4a8d-9ed5-5ff8c52a0f00
Error getting the secret: invalid_client: 7000222 - [2026-07-04 19:30:06Z]: 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: 03910ebd-a694-45cf-b4f7-02c181a71c00 Correlation ID: 01a5e257-bf4d-42fa-8de4-80d020c6bb9e Timestamp: 2026-07-04 19:30:06Z - Correlation ID: 01a5e257-bf4d-42fa-8de4-80d020c6bb9e - Trace ID: 03910ebd-a694-45cf-b4f7-02c181a71c00
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)