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-04-23 10:12:25Z]: 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: fc3fc356-639d-45aa-97cf-8e0964570600 Correlation ID: 7ba0bdc9-5a23-4511-8874-fc117b33faa6 Timestamp: 2026-04-23 10:12:25Z - Correlation ID: 7ba0bdc9-5a23-4511-8874-fc117b33faa6 - Trace ID: fc3fc356-639d-45aa-97cf-8e0964570600
(node:844) [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-04-23 10:12:26Z]: 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: 1cfd9e16-0302-497f-bd1c-1ae111473e00 Correlation ID: 2b9ae7da-25f5-445c-a701-9995924b2975 Timestamp: 2026-04-23 10:12:26Z - Correlation ID: 2b9ae7da-25f5-445c-a701-9995924b2975 - Trace ID: 1cfd9e16-0302-497f-bd1c-1ae111473e00
Error getting the secret: invalid_client: 7000222 - [2026-04-23 10:12:26Z]: 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: 25204889-ae1b-4748-b95f-c3be5b1a1100 Correlation ID: 74740263-fd32-48cc-aa32-28adf2e09a2f Timestamp: 2026-04-23 10:12:26Z - Correlation ID: 74740263-fd32-48cc-aa32-28adf2e09a2f - Trace ID: 25204889-ae1b-4748-b95f-c3be5b1a1100
Error getting the secret: invalid_client: 7000222 - [2026-04-23 10:12:26Z]: 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: e30bf26a-0fa2-482f-8e64-2e081a710c00 Correlation ID: de27b489-c4d7-449e-9afb-821dd96b0026 Timestamp: 2026-04-23 10:12:26Z - Correlation ID: de27b489-c4d7-449e-9afb-821dd96b0026 - Trace ID: e30bf26a-0fa2-482f-8e64-2e081a710c00
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)