Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RetryError using batch() on App Engine Flex #833

Closed
ghost opened this issue Feb 28, 2017 · 7 comments
Closed

RetryError using batch() on App Engine Flex #833

ghost opened this issue Feb 28, 2017 · 7 comments

Comments

@ghost
Copy link

ghost commented Feb 28, 2017

Hi,
I get the following exception using the batch() api on AppEngine Flex.

    batch = vision_client.batch()
    for blob in blobs:
            content = blob.download_as_string()
            image = vision_client.image(content=content)
            batch.add_image(image, FEATURES)
    results = batch.detect()

DEBUG:google_auth_httplib2:Making request: POST https://accounts.google.com/o/oauth2/token
ERROR:root:Exception occurred in retry method that was not classified as transient
<class 'google.gax.errors.RetryError'>

Package:
google-cloud-vision (0.23.2)

@theacodes
Copy link
Contributor

@sprakash3 do you have any other logs? The RetryError seems to be obscuring the real error.

/cc @lukesneeringer

@lukesneeringer
Copy link
Contributor

I will look into changing this to raise the actual error.

@ghost
Copy link
Author

ghost commented Feb 28, 2017

@jonparrott @lukesneeringer Some of the images in the batch request exceeded the resource limit for the vision api. I'll have to figure out a way to get around them.
Thanks

@daspecster
Copy link

daspecster commented Feb 28, 2017

@sprakash3 do you have an example I could use to reproduce the same error that you were getting?

@ghost
Copy link
Author

ghost commented Feb 28, 2017

@daspecster Any image greater than 4 MB in size would result in this error. I'm sorry i cant share the image.

@daspecster
Copy link

Thanks @sprakash3! That information is what I needed.

@engelke
Copy link
Contributor

engelke commented Dec 7, 2018

Closing this issue as dealt with above.

@engelke engelke closed this as completed Dec 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants