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-26 16:26: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: af1fca3b-c506-447f-a9d5-f00b24735900 Correlation ID: 95ef90ff-4591-4822-bced-7cd807d3218b Timestamp: 2026-07-26 16:26:44Z - Correlation ID: 95ef90ff-4591-4822-bced-7cd807d3218b - Trace ID: af1fca3b-c506-447f-a9d5-f00b24735900
(node:3864) [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-26 16:26: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: 5b22b8fd-b62d-4d81-a24f-a00ac4063e00 Correlation ID: c7a9673c-b2a6-48a0-b3be-75f783da715e Timestamp: 2026-07-26 16:26:44Z - Correlation ID: c7a9673c-b2a6-48a0-b3be-75f783da715e - Trace ID: 5b22b8fd-b62d-4d81-a24f-a00ac4063e00
Error getting the secret: invalid_client: 7000222 - [2026-07-26 16:26: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: 73351c69-8530-4c80-a889-b6e56d764300 Correlation ID: 033ec4e8-0bd0-4ca1-b8e6-d40ca5537bd5 Timestamp: 2026-07-26 16:26:44Z - Correlation ID: 033ec4e8-0bd0-4ca1-b8e6-d40ca5537bd5 - Trace ID: 73351c69-8530-4c80-a889-b6e56d764300
Error getting the secret: invalid_client: 7000222 - [2026-07-26 16:26: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: c509026c-8eb1-4fce-8d03-4de166a41b00 Correlation ID: 91a67420-7ea8-4ed3-a884-2b226eb21cc9 Timestamp: 2026-07-26 16:26:44Z - Correlation ID: 91a67420-7ea8-4ed3-a884-2b226eb21cc9 - Trace ID: c509026c-8eb1-4fce-8d03-4de166a41b00
Error getting the secret: invalid_client: 7000222 - [2026-07-26 16:26: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: 73351c69-8530-4c80-a889-b6e574764300 Correlation ID: 484bbf85-90c8-41a0-8e69-14a9c5f8f01c Timestamp: 2026-07-26 16:26:45Z - Correlation ID: 484bbf85-90c8-41a0-8e69-14a9c5f8f01c - Trace ID: 73351c69-8530-4c80-a889-b6e574764300
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)