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-22 12:33:31Z]: 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: f63c3b5d-b0fc-45fa-b6ce-c071ed8c2300 Correlation ID: e5e88ca9-b5fb-422c-90c9-fa7917278542 Timestamp: 2026-07-22 12:33:31Z - Correlation ID: e5e88ca9-b5fb-422c-90c9-fa7917278542 - Trace ID: f63c3b5d-b0fc-45fa-b6ce-c071ed8c2300
(node:1476) [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-22 12:33:31Z]: 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: 3924868b-535c-4601-8d86-cf1bbda14600 Correlation ID: 7464f375-5be3-47f6-a2d8-0a5580c6c431 Timestamp: 2026-07-22 12:33:31Z - Correlation ID: 7464f375-5be3-47f6-a2d8-0a5580c6c431 - Trace ID: 3924868b-535c-4601-8d86-cf1bbda14600
Error getting the secret: invalid_client: 7000222 - [2026-07-22 12:33:32Z]: 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: 84496d94-f4df-4832-b3c7-39f11d5f2900 Correlation ID: 7e0b2784-404d-4053-95c0-093a08d54890 Timestamp: 2026-07-22 12:33:32Z - Correlation ID: 7e0b2784-404d-4053-95c0-093a08d54890 - Trace ID: 84496d94-f4df-4832-b3c7-39f11d5f2900
Error getting the secret: invalid_client: 7000222 - [2026-07-22 12:33:32Z]: 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: 4c8501a1-52a0-43cf-814f-54187d792500 Correlation ID: c8c1ed64-a0e2-44bd-bef2-afe99edf7b55 Timestamp: 2026-07-22 12:33:32Z - Correlation ID: c8c1ed64-a0e2-44bd-bef2-afe99edf7b55 - Trace ID: 4c8501a1-52a0-43cf-814f-54187d792500
Error getting the secret: invalid_client: 7000222 - [2026-07-22 12:33:32Z]: 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: f63c3b5d-b0fc-45fa-b6ce-c0710d8d2300 Correlation ID: 2534ec0c-e972-415b-9515-eba5d1de9aef Timestamp: 2026-07-22 12:33:32Z - Correlation ID: 2534ec0c-e972-415b-9515-eba5d1de9aef - Trace ID: f63c3b5d-b0fc-45fa-b6ce-c0710d8d2300
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)