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-02 19:31: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: d3b5f749-4cd9-457a-a11d-780876a01800 Correlation ID: 66226d4d-3048-49a9-a14b-190db9b64ce2 Timestamp: 2026-07-02 19:31:26Z - Correlation ID: 66226d4d-3048-49a9-a14b-190db9b64ce2 - Trace ID: d3b5f749-4cd9-457a-a11d-780876a01800
(node:4132) [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-02 19:31: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: 7b8e37db-ba2c-41a4-b9b1-8f1f5c959300 Correlation ID: 4c7c1b30-02f6-46e2-9e57-82229c9a8a63 Timestamp: 2026-07-02 19:31:26Z - Correlation ID: 4c7c1b30-02f6-46e2-9e57-82229c9a8a63 - Trace ID: 7b8e37db-ba2c-41a4-b9b1-8f1f5c959300
Error getting the secret: invalid_client: 7000222 - [2026-07-02 19:31: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: 0e51cd68-ae47-4813-a563-0db725e85a00 Correlation ID: 416cb872-680f-4a88-81d6-aa67af415936 Timestamp: 2026-07-02 19:31:26Z - Correlation ID: 416cb872-680f-4a88-81d6-aa67af415936 - Trace ID: 0e51cd68-ae47-4813-a563-0db725e85a00
Error getting the secret: invalid_client: 7000222 - [2026-07-02 19:31:27Z]: 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: 462dcecc-fd70-49d4-878b-c2cc17560c00 Correlation ID: 01b71079-69db-43ca-b4e9-02e4a8cf34bf Timestamp: 2026-07-02 19:31:27Z - Correlation ID: 01b71079-69db-43ca-b4e9-02e4a8cf34bf - Trace ID: 462dcecc-fd70-49d4-878b-c2cc17560c00
Error getting the secret: invalid_client: 7000222 - [2026-07-02 19:31:27Z]: 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: 0e51cd68-ae47-4813-a563-0db743e85a00 Correlation ID: 5d907e87-5869-4749-a3ba-f291d529e823 Timestamp: 2026-07-02 19:31:27Z - Correlation ID: 5d907e87-5869-4749-a3ba-f291d529e823 - Trace ID: 0e51cd68-ae47-4813-a563-0db743e85a00
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)