'GCloud Vision API Code 7 We're not allowed to access the URL on your behalf. Please download the content and pass it in

When i call the google vision api for analyzing text on a picture, the direct url to the picture from another cloud (onedrive) can not be accessed. the response is:

ERROR: (gcloud.ml.vision.detect-text) Code: [7] Message: [We're not allowed to access the URL on your behalf. Please download the content and pass it in.]

Currently i use the gcloud cli for windows:

gcloud ml vision detect-text https://public.am.files.1drv.com/exampleurl (<--- there is an forever long id instead of "exampleurl"

Does somebody know a solution for this except from downloading the image manually?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source