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-04 11:33: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: 6f60b260-a5a1-48fb-8342-5b68c81b0900 Correlation ID: 5f87f728-e015-4b4a-bade-4c5868078c78 Timestamp: 2026-07-04 11:33:11Z - Correlation ID: 5f87f728-e015-4b4a-bade-4c5868078c78 - Trace ID: 6f60b260-a5a1-48fb-8342-5b68c81b0900
(node:3476) [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-04 11:33: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: 6f60b260-a5a1-48fb-8342-5b68cf1b0900 Correlation ID: b21a5392-0dc0-4c6b-b832-6bedd38519b6 Timestamp: 2026-07-04 11:33:11Z - Correlation ID: b21a5392-0dc0-4c6b-b832-6bedd38519b6 - Trace ID: 6f60b260-a5a1-48fb-8342-5b68cf1b0900
Error getting the secret: invalid_client: 7000222 - [2026-07-04 11:33:12Z]: 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: af10c6b7-4f03-4723-bbdc-408b5b891300 Correlation ID: 83f3e14f-38b8-4668-a572-51c4ff3a00c2 Timestamp: 2026-07-04 11:33:12Z - Correlation ID: 83f3e14f-38b8-4668-a572-51c4ff3a00c2 - Trace ID: af10c6b7-4f03-4723-bbdc-408b5b891300
Error getting the secret: invalid_client: 7000222 - [2026-07-04 11:33:12Z]: 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: 63250543-9d5a-4ac3-84df-8e8c64d60800 Correlation ID: 30ec2ed0-fc4d-4f61-98c7-b4f296ce9e27 Timestamp: 2026-07-04 11:33:12Z - Correlation ID: 30ec2ed0-fc4d-4f61-98c7-b4f296ce9e27 - Trace ID: 63250543-9d5a-4ac3-84df-8e8c64d60800
Error getting the secret: invalid_client: 7000222 - [2026-07-04 11:33:12Z]: 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: ac14720c-ec6f-4362-84b6-312b048d0700 Correlation ID: 5c604976-c209-47a9-8257-2acb10ea528b Timestamp: 2026-07-04 11:33:12Z - Correlation ID: 5c604976-c209-47a9-8257-2acb10ea528b - Trace ID: ac14720c-ec6f-4362-84b6-312b048d0700
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)