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-04 01:34:12Z]: 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: 419bcf5b-bf76-49c8-858c-3d70380c0200 Correlation ID: dfb6aa72-b8c7-43a4-b785-0e263f58fa69 Timestamp: 2026-07-04 01:34:12Z - Correlation ID: dfb6aa72-b8c7-43a4-b785-0e263f58fa69 - Trace ID: 419bcf5b-bf76-49c8-858c-3d70380c0200
(node:4464) [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-04 01:34:12Z]: 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: 861c7a57-e4bb-4371-b3a3-50b6f9ff0100 Correlation ID: 9d66bafe-804f-4c36-b197-c7f393414368 Timestamp: 2026-07-04 01:34:12Z - Correlation ID: 9d66bafe-804f-4c36-b197-c7f393414368 - Trace ID: 861c7a57-e4bb-4371-b3a3-50b6f9ff0100
Error getting the secret: invalid_client: 7000222 - [2026-07-04 01:34:13Z]: 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: 7243cbe1-25d9-4f15-bca4-24a089bf0d00 Correlation ID: b1568e88-d976-4cec-ba5e-8bd48af9d7bc Timestamp: 2026-07-04 01:34:13Z - Correlation ID: b1568e88-d976-4cec-ba5e-8bd48af9d7bc - Trace ID: 7243cbe1-25d9-4f15-bca4-24a089bf0d00
Error getting the secret: invalid_client: 7000222 - [2026-07-04 01:34:13Z]: 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: 13ac5ed1-78c4-4003-a291-e604a75a0300 Correlation ID: 50c9dd93-7fc6-42ea-a5e9-eb333d82b693 Timestamp: 2026-07-04 01:34:13Z - Correlation ID: 50c9dd93-7fc6-42ea-a5e9-eb333d82b693 - Trace ID: 13ac5ed1-78c4-4003-a291-e604a75a0300
Error getting the secret: invalid_client: 7000222 - [2026-07-04 01:34:14Z]: 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: 0368981e-9d8c-4fcf-9531-394b0fdf0000 Correlation ID: d1e8aff6-96a8-4cc2-9682-8970851702fb Timestamp: 2026-07-04 01:34:14Z - Correlation ID: d1e8aff6-96a8-4cc2-9682-8970851702fb - Trace ID: 0368981e-9d8c-4fcf-9531-394b0fdf0000
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)