Automl Vision error 401 - Request had invalid authentication credentials

127 views
Skip to first unread message

AutonomouZ IA

unread,
Jan 12, 2020, 1:24:00 PM1/12/20
to Google Cloud Developers
Hi Guys,

Really need some help on this subsject.

The dataset and model were created sucessufully and it was also trainned and deployed.

I strictly followed all directions of Test and Use session using the REST API option. Everything related to authorization it was done ( https://bit.ly/37W1pPC ), the request.json file was created and when i execute the curl request by windows CMD, exactly as the directions are showen, I always get the same error and return:

{
  "error": {
    "code": 401,
    "message": "Request had invalid authentication credentials. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.",
    "status": "UNAUTHENTICATED"
  }
}
curl: (6) Could not resolve host: \

Reviewing everything:

  1. The project is selected
  2. The related billing is enabled
  3. The APIs is also enabled, the Cloud Vision API
  4. Gcloud was sucesfully installed to Windows
  5. Service account was created and the key file was generated and downloaded
  6. the enviroment variables GOOGLE_APPLICATION_CREDENTIALS and PROJECT_ID were set up
  7. and finally the service account and user account were granted to edit automl role

What am I missing?

Thanks,

Patrick 






Jun (Cloud Platform Support)

unread,
Jan 14, 2020, 2:36:07 PM1/14/20
to Google Cloud Developers
Hi, 

Google Groups are reserved for general product discussion, StackOverflow for technical questions whereas Issue Tracker for product bugs (unexpected behaviors) and feature requests.

To get a better support you should post to the relevant forum, thus please read the Community Support article for better understanding.


Reply all
Reply to author
Forward
0 new messages