Code Monkey home page Code Monkey logo

Comments (7)

jorgerodriguezsj avatar jorgerodriguezsj commented on June 13, 2024 1

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 vision.ImageAnnotatorClient(credentials=credentials) appears to be frozen.

from google-cloud-python.

parthea avatar parthea commented on June 13, 2024

@jorgerodriguezsj ,

Please can you share more information about your environment? Are you running in GCE or GKE ? I found related issues opened in google-auth where the Metadata server, which is needed for credentials, may not be ready. Although vision.ImageAnnotatorClient(credentials=credentials) appears to be frozen, I wonder if it's just that the Metadata server is not ready and there are too many requests going out during that time.

googleapis/google-auth-library-python#1261
googleapis/google-auth-library-python#814

One workaround is to create a global credentials object as suggested in this bug to reduce the load on metadata server.
googleapis/google-auth-library-python#814 (comment)

Please let us know if the workaround solves the issue and whether you are using GCE or GKE.

from google-cloud-python.

parthea avatar parthea commented on June 13, 2024

Please can you try the workaround in googleapis/google-auth-library-python#814 (comment) and let us know if it helps?

from google-cloud-python.

parthea avatar parthea commented on June 13, 2024

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 client = vision.ImageAnnotatorClient(credentials=credentials, transport="rest") instead of client = vision.ImageAnnotatorClient(credentials=credentials) to check if the issue is specific to gRPC? This will help to narrow down the issue and troubleshooting steps.

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 grpcio. If the issue is gRPC specific and occurs in the latest version of grcpio, we can file a bug for the gRPC library.

from google-cloud-python.

jorgerodriguezsj avatar jorgerodriguezsj commented on June 13, 2024

Thanks a lot for your help. In the end, I was able to fix the issue by downgrading the grpcio version to 1.57.0. Now it works perfectly without any problems.

from google-cloud-python.

parthea avatar parthea commented on June 13, 2024

@jorgerodriguezsj, If the issue can be produced with the latest version of grpcio, version 1.62.1, please file a bug in the grpcio repository here.

I'm going to close this issue as it is specific to the gRPC code rather than the client library code.

from google-cloud-python.

parthea avatar parthea commented on June 13, 2024

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)

from google-cloud-python.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.