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-10 21:47:44Z]: 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: 885923d5-9811-44af-845f-c0cd54e51000 Correlation ID: 2e04b321-54ed-472d-8b61-6cd0165defb2 Timestamp: 2026-07-10 21:47:44Z - Correlation ID: 2e04b321-54ed-472d-8b61-6cd0165defb2 - Trace ID: 885923d5-9811-44af-845f-c0cd54e51000
(node:2760) [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-10 21:47:44Z]: 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: f89e6c4b-cca3-4d3b-a1d6-16b80db12100 Correlation ID: c2606eb4-055f-40a8-a9ef-0db9cd9e937f Timestamp: 2026-07-10 21:47:44Z - Correlation ID: c2606eb4-055f-40a8-a9ef-0db9cd9e937f - Trace ID: f89e6c4b-cca3-4d3b-a1d6-16b80db12100
Error getting the secret: invalid_client: 7000222 - [2026-07-10 21:47:44Z]: 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: 08949519-64ea-4554-91a8-73f0c7b63000 Correlation ID: d97f6045-b1ab-4157-8909-3f39b1f8ebf9 Timestamp: 2026-07-10 21:47:44Z - Correlation ID: d97f6045-b1ab-4157-8909-3f39b1f8ebf9 - Trace ID: 08949519-64ea-4554-91a8-73f0c7b63000
Error getting the secret: invalid_client: 7000222 - [2026-07-10 21:47:45Z]: 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: a8503673-bf34-45b6-9e13-ec13cf9e5b00 Correlation ID: 3338899b-7e04-4853-8ef0-407d29f3e496 Timestamp: 2026-07-10 21:47:45Z - Correlation ID: 3338899b-7e04-4853-8ef0-407d29f3e496 - Trace ID: a8503673-bf34-45b6-9e13-ec13cf9e5b00
Error getting the secret: invalid_client: 7000222 - [2026-07-10 21:47:45Z]: 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: 99288c02-48ef-4694-b603-da6501e0a100 Correlation ID: 69565e81-271e-4dec-b058-5039c6186954 Timestamp: 2026-07-10 21:47:45Z - Correlation ID: 69565e81-271e-4dec-b058-5039c6186954 - Trace ID: 99288c02-48ef-4694-b603-da6501e0a100
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)