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-07 05:37:04Z]: 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: 389f5ea3-e56a-4d58-ab19-2252fd610a00 Correlation ID: d445f58a-dca5-407a-95f2-fd3134ef830f Timestamp: 2026-07-07 05:37:04Z - Correlation ID: d445f58a-dca5-407a-95f2-fd3134ef830f - Trace ID: 389f5ea3-e56a-4d58-ab19-2252fd610a00
(node:5704) [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-07 05:37:05Z]: 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: 36991f19-43b5-4793-9394-843365132900 Correlation ID: e5ad3a97-ad79-4aa8-96d3-1c7b5e5c060d Timestamp: 2026-07-07 05:37:05Z - Correlation ID: e5ad3a97-ad79-4aa8-96d3-1c7b5e5c060d - Trace ID: 36991f19-43b5-4793-9394-843365132900
Error getting the secret: invalid_client: 7000222 - [2026-07-07 05:37:05Z]: 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: 258acaa5-94fd-4379-878e-40ed43ab3e00 Correlation ID: f4bf84fe-6dc7-4036-988c-b031d78fae88 Timestamp: 2026-07-07 05:37:05Z - Correlation ID: f4bf84fe-6dc7-4036-988c-b031d78fae88 - Trace ID: 258acaa5-94fd-4379-878e-40ed43ab3e00
Error getting the secret: invalid_client: 7000222 - [2026-07-07 05:37:05Z]: 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: 389f5ea3-e56a-4d58-ab19-22520f620a00 Correlation ID: 5d5d67f4-3cbd-4b3f-a43a-f89895925685 Timestamp: 2026-07-07 05:37:05Z - Correlation ID: 5d5d67f4-3cbd-4b3f-a43a-f89895925685 - Trace ID: 389f5ea3-e56a-4d58-ab19-22520f620a00
Error getting the secret: invalid_client: 7000222 - [2026-07-07 05:37:05Z]: 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: 389f5ea3-e56a-4d58-ab19-225215620a00 Correlation ID: 3c2c0bb8-bb5f-43cd-91ca-6fae41f73d4e Timestamp: 2026-07-07 05:37:05Z - Correlation ID: 3c2c0bb8-bb5f-43cd-91ca-6fae41f73d4e - Trace ID: 389f5ea3-e56a-4d58-ab19-225215620a00
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)