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-14 23:19:11Z]: 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: 21c2d069-a0c9-41f3-8cbd-35e33f340700 Correlation ID: 3c0f48c3-b039-49d6-91d3-6823c883b3aa Timestamp: 2026-07-14 23:19:11Z - Correlation ID: 3c0f48c3-b039-49d6-91d3-6823c883b3aa - Trace ID: 21c2d069-a0c9-41f3-8cbd-35e33f340700
(node:3148) [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-14 23:19:11Z]: 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: 2a45bd53-7b1a-4be6-83a3-800af6d41100 Correlation ID: 8b252b98-ea75-4cce-9e02-61523dd3fa34 Timestamp: 2026-07-14 23:19:11Z - Correlation ID: 8b252b98-ea75-4cce-9e02-61523dd3fa34 - Trace ID: 2a45bd53-7b1a-4be6-83a3-800af6d41100
Error getting the secret: invalid_client: 7000222 - [2026-07-14 23:19:11Z]: 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: 0f7baff8-4998-4e0b-9ae1-82fe6dd50200 Correlation ID: 23cd2443-edbc-4692-abff-7144b1b1e674 Timestamp: 2026-07-14 23:19:11Z - Correlation ID: 23cd2443-edbc-4692-abff-7144b1b1e674 - Trace ID: 0f7baff8-4998-4e0b-9ae1-82fe6dd50200
Error getting the secret: invalid_client: 7000222 - [2026-07-14 23:19:11Z]: 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: d033666d-40e4-4ab2-805e-e8a0434e0500 Correlation ID: d0da7518-f041-4719-914e-1193ecf7b47e Timestamp: 2026-07-14 23:19:11Z - Correlation ID: d0da7518-f041-4719-914e-1193ecf7b47e - Trace ID: d033666d-40e4-4ab2-805e-e8a0434e0500
Error getting the secret: invalid_client: 7000222 - [2026-07-14 23:19:11Z]: 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: 2f39478a-d7d7-4386-b63c-c3d4d3272000 Correlation ID: 5582e93e-f0b8-4f2f-b2fb-d344c1cfd934 Timestamp: 2026-07-14 23:19:11Z - Correlation ID: 5582e93e-f0b8-4f2f-b2fb-d344c1cfd934 - Trace ID: 2f39478a-d7d7-4386-b63c-c3d4d3272000
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)