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-12 08:34: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: 8de1f435-ee67-4bdb-b17d-972d87780a00 Correlation ID: dd8d3100-85da-4c5b-9cac-6f21bb3842ba Timestamp: 2026-07-12 08:34:30Z - Correlation ID: dd8d3100-85da-4c5b-9cac-6f21bb3842ba - Trace ID: 8de1f435-ee67-4bdb-b17d-972d87780a00
(node:3164) [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-12 08:34: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: 656264b7-aa39-401e-bd23-228a43b80400 Correlation ID: d15c1b04-4297-4b63-bd35-1bb81126eaa1 Timestamp: 2026-07-12 08:34:30Z - Correlation ID: d15c1b04-4297-4b63-bd35-1bb81126eaa1 - Trace ID: 656264b7-aa39-401e-bd23-228a43b80400
Error getting the secret: invalid_client: 7000222 - [2026-07-12 08:34: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: 33bdcc48-956a-4862-a06f-10986d080300 Correlation ID: b1cb5e6a-d026-48d3-95c6-d3f967f2ac81 Timestamp: 2026-07-12 08:34:30Z - Correlation ID: b1cb5e6a-d026-48d3-95c6-d3f967f2ac81 - Trace ID: 33bdcc48-956a-4862-a06f-10986d080300
Error getting the secret: invalid_client: 7000222 - [2026-07-12 08:34: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: 8de1f435-ee67-4bdb-b17d-972d92780a00 Correlation ID: 10820223-ce0e-40d8-8cf5-77decc0e3a89 Timestamp: 2026-07-12 08:34:31Z - Correlation ID: 10820223-ce0e-40d8-8cf5-77decc0e3a89 - Trace ID: 8de1f435-ee67-4bdb-b17d-972d92780a00
Error getting the secret: invalid_client: 7000222 - [2026-07-12 08:34: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: e0a78b1e-dc15-42ce-bb58-e4a4fcf20300 Correlation ID: b1ec9110-69a6-4c61-9166-76d995ae871e Timestamp: 2026-07-12 08:34:31Z - Correlation ID: b1ec9110-69a6-4c61-9166-76d995ae871e - Trace ID: e0a78b1e-dc15-42ce-bb58-e4a4fcf20300
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)