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-02-25 13:37:20Z]: 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: 4aceec35-bb1c-4c3f-b40c-c743af104900 Correlation ID: 355531c0-c5d5-489b-978b-f8ab852a9e40 Timestamp: 2026-02-25 13:37:20Z - Correlation ID: 355531c0-c5d5-489b-978b-f8ab852a9e40 - Trace ID: 4aceec35-bb1c-4c3f-b40c-c743af104900
(node:1064) [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-02-25 13:37:21Z]: 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: e313e3ce-e1b5-4504-851e-67ea847f8700 Correlation ID: b2492246-1990-46dd-83f8-d22525a165ee Timestamp: 2026-02-25 13:37:21Z - Correlation ID: b2492246-1990-46dd-83f8-d22525a165ee - Trace ID: e313e3ce-e1b5-4504-851e-67ea847f8700
Error getting the secret: invalid_client: 7000222 - [2026-02-25 13:37:21Z]: 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: 3bfa4121-8858-4a4a-b592-826cd1829500 Correlation ID: d1522e2d-03e1-4181-b583-71a4e0196a41 Timestamp: 2026-02-25 13:37:21Z - Correlation ID: d1522e2d-03e1-4181-b583-71a4e0196a41 - Trace ID: 3bfa4121-8858-4a4a-b592-826cd1829500
Error getting the secret: invalid_client: 7000222 - [2026-02-25 13:37:21Z]: 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: 3bfa4121-8858-4a4a-b592-826ce2829500 Correlation ID: 4a83ea93-325c-4ba6-ae24-eb10dd9c0bc3 Timestamp: 2026-02-25 13:37:21Z - Correlation ID: 4a83ea93-325c-4ba6-ae24-eb10dd9c0bc3 - Trace ID: 3bfa4121-8858-4a4a-b592-826ce2829500
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)