Google-cloud-java: We can not access the URL currently. Please download the content and pass it in.

Created on 26 Jul 2017  路  28Comments  路  Source: googleapis/google-cloud-java

When working on the remote label detection i get this message on many (like really many) accessible and existing images.
e.g. http://heizung-dinges.de/assets/images/Koebig2.jpg
Also some other times i will get the message Bad image data. On different existing and accessible images. Re-requesting the API is not working, same exact errors will occur.

Most helpful comment

Getting this error quite a lot too while using ruby library for Google Cloud Vision

All 28 comments

@yamennassif could you provide more detail about what API and method you are using? Sample code would be helpful to figure out what may be causing the problem.

@tcoffee-google i am using the example provided here

https://github.com/GoogleCloudPlatform/java-docs-samples/blob/master/vision/cloud-client/src/main/java/com/example/vision/Detect.java

detectLabelsGcs

with a small change :
replaced : ImageSource imgSource = ImageSource.newBuilder().setGcsImageUri(gcsPath).build();
with : ImageSource imgSource =ImageSource.newBuilder().setImageUri(gcsPath).build();

From https://github.com/GoogleCloudPlatform/google-cloud-node/issues/2215, this appears to be a problem with the backend API, which can be worked around by fetching the image data independently.

The issue has been recently posted on StackOverflow, where it should be picked up by the API team.

Hello any update on this issue?

Same issue:

  • We're not allowed to access the URL on your behalf. Please download the content and pass it in. (code 7)
  • We can not access the URL currently. Please download the content and pass it in. (code 4 or 13)

@tcoffee-google can you maybe check if there is any updates on this ?

Getting this error quite a lot too while using ruby library for Google Cloud Vision

@nitishgargiitd Were you able to resolve it? If yes, please let me know how.

We are also facing this issue .
Out of 50 requests, we receive below error for 45 images:
We can not access the URL currently. Please download the content and pass it in

Any help is highly appreciated.

Facing the same issue. The API is not working consistently even though the images should all be publicly accessible.

Also getting this now. Same code worked back in September 2017.

Same here

{
  "responses": [
    {
      "error": {
        "code": 14,
        "message": "We can not access the URL currently. Please download the content and pass it in."
      }
    }
  ]
}

it did work few days ago :/

Same error here for a node.js API call :

{
"responses": [
{
"error": {
"code": 14,
"message": "We can not access the URL currently. Please download the content and pass it in."
}
}
]
}

Used to work without problems, it seems to happen randomly on the same image, sometimes the image is processed sometimes this code is returned

Any update? Thanks.

Any update ? Thanks

We are using gem 'google-cloud-vision' and facing this issue as well. Please update the library

FYI 鈥撀營've added more information about this error message to a similar issue filed against the Node.js client library for the Cloud Vision API: https://github.com/googleapis/nodejs-vision/issues/270#issuecomment-481064953

Getting the same error, not sure why though because everything was working fine last week.
"We're not allowed to access the URL on your behalf. Please download the content and pass it in."

Getting the same error, not sure why though because everything was working fine last week.
"We're not allowed to access the URL on your behalf. Please download the content and pass it in."

Same here, it was working fine in my project and now all my clientes get this error

After talking with Google, here is a list of thing you can do instead:

  • Using the Base 64 encoding
  • Download the image and storing it in a Cloud Storage Bucket

Good luck.

Yep, I can confirm that downloading the image in B64 format and using that works and is stable, albeit hurt response times.

I have the same issue :( I have changed storage rules but it didnt make sense!

I have the same issue :( I have changed storage rules but it didnt make sense!

And did it work?

I am having the same issue - using the node library and the batchAnnotateImages() function. Any way to fix this other than downloading the images and using a google cloud bucket?

This is still a problem. This API is super unreliable.

Still and issue we cannot use the image URLs from our S3 bucket with google API.

2020 and this bug is back and BIG!!!
What's going on there? can't google handle a simple download action from it's own storage??
This cause my app to be completely broken, and I assume the same for any other app that uses this service,
It didn't happen for a year, and since yesterday it happens constantly.

And I don't think that downloading the image and using B64 is a reasonable solution...

Using the gs:// uri is more reasonable, but how do I get this URI from a flutter TaskSnapshot object??

Please solve it ASAP, Please QA your code before uploading it to production...
Thanks

Same here, the problem returned to happen in our App in Production, even tho we are using Google Storage

Was this page helpful?
0 / 5 - 0 ratings