[Answered ]-Google Vertex AI Prediction API Authentication

1đź‘Ť

âś…

Based on the error message 401 Request had invalid authentication credentials. Expected OAuth 2 access token, login cookie or other valid authentication credential. the request you made had invalid authentication credentials. Expected authentication credentials include an OAuth 2 access token. The specific error code is "UNAUTHENTICATED," meaning the request was not successfully authenticated.

Based on the documentation “Create authorization credentials” reviewing your authentication process and ensuring that you are providing the correct authentication credentials. You may need to generate a valid OAuth 2 access token or use the appropriate login cookie for authentication.

The error code “ 401” is indicating, the user is not authorized to make the request. The authorization credentials provided for the request are invalid. Check the value of the Authorization HTTP request header. For detailed information refer to the documentation

Leave a comment