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-10-07 09:14: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: 07f04138-c5fe-4a6a-a633-f5057d411900 Correlation ID: deddf01a-e65b-447e-8989-9473c51e8d34 Timestamp: 2026-10-07 09:14:29Z - Correlation ID: deddf01a-e65b-447e-8989-9473c51e8d34 - Trace ID: 07f04138-c5fe-4a6a-a633-f5057d411900
(node:5232) [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-10-07 09:14: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: 7e017eb0-a77d-4b77-b2df-bc33b5131800 Correlation ID: ad38fada-7cf4-4ced-b769-ac29e61ee5ae Timestamp: 2026-10-07 09:14:29Z - Correlation ID: ad38fada-7cf4-4ced-b769-ac29e61ee5ae - Trace ID: 7e017eb0-a77d-4b77-b2df-bc33b5131800
Error getting the secret: invalid_client: 7000222 - [2026-10-07 09:14: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: 072971b6-e723-4fd5-8f3f-13c90ebf2100 Correlation ID: 12691044-0988-4229-9c8e-76cc396f5fb8 Timestamp: 2026-10-07 09:14:29Z - Correlation ID: 12691044-0988-4229-9c8e-76cc396f5fb8 - Trace ID: 072971b6-e723-4fd5-8f3f-13c90ebf2100
Error getting the secret: invalid_client: 7000222 - [2026-10-07 09:14: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: 68d20966-44aa-4539-a991-788dc5216000 Correlation ID: f6c9abb4-582b-4614-bb94-fb26e29fb1c8 Timestamp: 2026-10-07 09:14:29Z - Correlation ID: f6c9abb4-582b-4614-bb94-fb26e29fb1c8 - Trace ID: 68d20966-44aa-4539-a991-788dc5216000
Application has thrown an uncaught exception and is terminated:
TypeError: Cannot read properties of undefined (reading 'username')
at C:\vehicle_status_API\server.js:25:32
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)