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-06 23:17:58Z]: 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: 5c776d76-af04-4811-80fa-f4e4401f1800 Correlation ID: 2900b1ac-fdca-49d9-a29b-da63b4f87849 Timestamp: 2026-07-06 23:17:58Z - Correlation ID: 2900b1ac-fdca-49d9-a29b-da63b4f87849 - Trace ID: 5c776d76-af04-4811-80fa-f4e4401f1800
(node:6112) [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-06 23:17:58Z]: 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: b05a8702-b913-4aef-8d64-d3ea75623200 Correlation ID: d654cbfe-f695-478d-96a9-938ea4fc6ccb Timestamp: 2026-07-06 23:17:58Z - Correlation ID: d654cbfe-f695-478d-96a9-938ea4fc6ccb - Trace ID: b05a8702-b913-4aef-8d64-d3ea75623200
Error getting the secret: invalid_client: 7000222 - [2026-07-06 23:17:58Z]: 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: 5c776d76-af04-4811-80fa-f4e4541f1800 Correlation ID: c3f97bc0-aada-40f5-a653-e659dfd2e98c Timestamp: 2026-07-06 23:17:58Z - Correlation ID: c3f97bc0-aada-40f5-a653-e659dfd2e98c - Trace ID: 5c776d76-af04-4811-80fa-f4e4541f1800
Error getting the secret: invalid_client: 7000222 - [2026-07-06 23:17:59Z]: 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: b05a8702-b913-4aef-8d64-d3ea79623200 Correlation ID: 5c435a17-4c03-41f5-b5ab-a6aefe802681 Timestamp: 2026-07-06 23:17:59Z - Correlation ID: 5c435a17-4c03-41f5-b5ab-a6aefe802681 - Trace ID: b05a8702-b913-4aef-8d64-d3ea79623200
Error getting the secret: invalid_client: 7000222 - [2026-07-06 23:17:59Z]: 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: 8793595e-9331-477d-853d-b78db00a1500 Correlation ID: 508d20b3-713d-4eb0-997c-06c9403e40ef Timestamp: 2026-07-06 23:17:59Z - Correlation ID: 508d20b3-713d-4eb0-997c-06c9403e40ef - Trace ID: 8793595e-9331-477d-853d-b78db00a1500
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)