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-20 07:32:28Z]: 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: d38b2684-4df7-4e50-8be6-320d50a80500 Correlation ID: aa8595dc-63ad-422d-aec1-4398da6621a6 Timestamp: 2026-07-20 07:32:28Z - Correlation ID: aa8595dc-63ad-422d-aec1-4398da6621a6 - Trace ID: d38b2684-4df7-4e50-8be6-320d50a80500
(node:788) [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-20 07:32:29Z]: 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: ba1a0162-958b-4471-8197-44a2e8ac0600 Correlation ID: 9ffdd45b-6e27-4899-97a0-17605eec3fc2 Timestamp: 2026-07-20 07:32:29Z - Correlation ID: 9ffdd45b-6e27-4899-97a0-17605eec3fc2 - Trace ID: ba1a0162-958b-4471-8197-44a2e8ac0600
Error getting the secret: invalid_client: 7000222 - [2026-07-20 07:32:29Z]: 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: 316d8deb-7d4c-4480-8101-d2164acf1400 Correlation ID: f2b95efe-dc45-4fdf-af6c-2527b84080e9 Timestamp: 2026-07-20 07:32:29Z - Correlation ID: f2b95efe-dc45-4fdf-af6c-2527b84080e9 - Trace ID: 316d8deb-7d4c-4480-8101-d2164acf1400
Error getting the secret: invalid_client: 7000222 - [2026-07-20 07:32:29Z]: 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: d38b2684-4df7-4e50-8be6-320d5ea80500 Correlation ID: 5cc2b928-4e67-4bd3-bca8-dfab60ed4633 Timestamp: 2026-07-20 07:32:29Z - Correlation ID: 5cc2b928-4e67-4bd3-bca8-dfab60ed4633 - Trace ID: d38b2684-4df7-4e50-8be6-320d5ea80500
Error getting the secret: invalid_client: 7000222 - [2026-07-20 07:32:29Z]: 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: fda166e6-8943-4e5e-8c53-c789ac131d00 Correlation ID: b436d0a0-5205-41b7-af09-36fc48864f41 Timestamp: 2026-07-20 07:32:29Z - Correlation ID: b436d0a0-5205-41b7-af09-36fc48864f41 - Trace ID: fda166e6-8943-4e5e-8c53-c789ac131d00
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)