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-25 22:24:41Z]: 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: 00dcf8af-3f6f-45af-aced-81f03e722500 Correlation ID: e9632faf-9d86-4252-9d3e-e8b815fb2b80 Timestamp: 2026-07-25 22:24:41Z - Correlation ID: e9632faf-9d86-4252-9d3e-e8b815fb2b80 - Trace ID: 00dcf8af-3f6f-45af-aced-81f03e722500
(node:3988) [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-25 22:24:42Z]: 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: d0d889ad-3028-46b8-8359-cc6630314200 Correlation ID: 9cacbb09-d669-42af-b9ee-f1d52007da31 Timestamp: 2026-07-25 22:24:42Z - Correlation ID: 9cacbb09-d669-42af-b9ee-f1d52007da31 - Trace ID: d0d889ad-3028-46b8-8359-cc6630314200
Error getting the secret: invalid_client: 7000222 - [2026-07-25 22:24:42Z]: 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: cf222553-d6f3-452e-b68c-424eb9490800 Correlation ID: d41d675b-0268-444b-9f25-c0694f9b2842 Timestamp: 2026-07-25 22:24:42Z - Correlation ID: d41d675b-0268-444b-9f25-c0694f9b2842 - Trace ID: cf222553-d6f3-452e-b68c-424eb9490800
Error getting the secret: invalid_client: 7000222 - [2026-07-25 22:24:43Z]: 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: ca3104ce-d8bb-4908-a31a-0b9896f21e00 Correlation ID: 164a37ea-e624-4b29-bb74-eea319684d9e Timestamp: 2026-07-25 22:24:43Z - Correlation ID: 164a37ea-e624-4b29-bb74-eea319684d9e - Trace ID: ca3104ce-d8bb-4908-a31a-0b9896f21e00
Error getting the secret: invalid_client: 7000222 - [2026-07-25 22:24:43Z]: 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: 9b02c7da-2148-476e-a430-13a578c31f00 Correlation ID: cc1abbd2-00d6-485d-af7b-f78811f44b75 Timestamp: 2026-07-25 22:24:43Z - Correlation ID: cc1abbd2-00d6-485d-af7b-f78811f44b75 - Trace ID: 9b02c7da-2148-476e-a430-13a578c31f00
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)