-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
The code freezes without receiving a response or error when creating a Google Cloud Vision API client (vision.ImageAnnotatorClient) #12423
Comments
Please can you share more information about your environment? Are you running in GCE or GKE ? I found related issues opened in googleapis/google-auth-library-python#1261 One workaround is to create a global credentials object as suggested in this bug to reduce the load on metadata server. Please let us know if the workaround solves the issue and whether you are using GCE or GKE. |
No, I don't use GCE or GKE. My entire infrastructure is deployed on ECS and Fargate with docker images. When the workload is high 8 or more machines wake up. Just in this moment is when the |
Please can you try the workaround in googleapis/google-auth-library-python#814 (comment) and let us know if it helps? |
I found a similar error report where googleapis/python-vision#523 (comment) mentions that the issue doesn't occur with REST transport. Can you please try Separately, related to gRPC, googleapis/python-vision#523 (comment) also mentions that changing the version of dependencies solved the issue for one user. I'm wondering if you get different behaviour with different versions of |
Thanks a lot for your help. In the end, I was able to fix the issue by downgrading the |
@jorgerodriguezsj, If the issue can be produced with the latest version of I'm going to close this issue as it is specific to the gRPC code rather than the client library code. |
This is related to grpc/grpc#36265 which is similar to googleapis/python-bigtable#949 and possibly #12535. I'm going to mark this as P2 since there is a workaround mentioned in #12423 (comment) |
I have an aplication with horizontally scaled machines. And when all the machines start working together the client creation with client = vision.ImageAnnotatorClient(credentials=credentials) gets freeze.
I try the following solutions:
I have changed the credentials just in case,
I have checked the maximum request quotas and we are not even close to the maximum.
The internet connection of the machine is correct since the rest of the download and API services work correctly.
But it keeps blocking without receiving any response when the following line of code is executed: client = vision.ImageAnnotatorClient(credentials=credentials). This had not happened before.
If anyone has had the same problem, please let me know a solution.
thanks
pip freeze:
The text was updated successfully, but these errors were encountered: