MrSer
MrSer

Reputation: 55

Google Cloud Vision Api Error

I have a problem with the Google Cloud Vision Api. When I'm trying to send a request to the api with this url:

https://vision.googleapis.com/v1/images:annotate?key=MyKey

The server replies (Error 404):

The requested URL /v1/images:annotate?key=MyKey was not found on this server. That’s all we know.

How can I fix this? I tried to do with an ajax request and via browser too.

Thanks in advance!

Upvotes: 1

Views: 2049

Answers (1)

oliviercuyp
oliviercuyp

Reputation: 215

You should pass the key in the Authorization header not as query parameter. Check it here: https://cloud.google.com/vision/docs/quickstart-cli

Upvotes: 1

Related Questions