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-15 17:32:24Z]: 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: 5450a9fd-6ac3-4b45-9978-fe40789c2d00 Correlation ID: 0d34a353-625a-42e0-b02a-eb72f14bf89d Timestamp: 2026-07-15 17:32:24Z - Correlation ID: 0d34a353-625a-42e0-b02a-eb72f14bf89d - Trace ID: 5450a9fd-6ac3-4b45-9978-fe40789c2d00
(node:996) [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-15 17:32:25Z]: 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: 23bb2103-aed0-469d-8b65-892082a51600 Correlation ID: e2307e94-0f76-4e54-a560-eaf76f7c7edb Timestamp: 2026-07-15 17:32:25Z - Correlation ID: e2307e94-0f76-4e54-a560-eaf76f7c7edb - Trace ID: 23bb2103-aed0-469d-8b65-892082a51600
Error getting the secret: invalid_client: 7000222 - [2026-07-15 17:32:25Z]: 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: bfae4260-1109-4075-88b1-38f1587c1a00 Correlation ID: 905f685e-685f-4e22-8df4-a8148b4c8d1f Timestamp: 2026-07-15 17:32:25Z - Correlation ID: 905f685e-685f-4e22-8df4-a8148b4c8d1f - Trace ID: bfae4260-1109-4075-88b1-38f1587c1a00
Error getting the secret: invalid_client: 7000222 - [2026-07-15 17:32:25Z]: 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: 83dfaf9e-9c19-4c6e-8e49-596dcd3e3200 Correlation ID: 05d4fdc8-e1c3-430d-9f91-4d243b4af068 Timestamp: 2026-07-15 17:32:25Z - Correlation ID: 05d4fdc8-e1c3-430d-9f91-4d243b4af068 - Trace ID: 83dfaf9e-9c19-4c6e-8e49-596dcd3e3200
Error getting the secret: invalid_client: 7000222 - [2026-07-15 17:32:25Z]: 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: 9556efef-754e-4e7b-b051-394ec98b1a00 Correlation ID: 7645d9f5-f859-48af-873b-361aaee9dc80 Timestamp: 2026-07-15 17:32:25Z - Correlation ID: 7645d9f5-f859-48af-873b-361aaee9dc80 - Trace ID: 9556efef-754e-4e7b-b051-394ec98b1a00
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)