Comments (7)
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.
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.
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.
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.
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.
@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.
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)
- Speech to text quickstart not working due to google.cloud import error HOT 11
- IAM Documentation Typo/Feature Request HOT 1
- include issue tracker link in the package and top-level READMEs
- Appending a role binding does not work as per the docs HOT 3
- update dependencies to protobuf=">=4.21.0" HOT 1
- 400 Cannot have filter_partition dimension without specifying filter-partitions in the request HOT 1
- determine publishing policy for APIs with "experimental" parts, possibly via a mechanism to pin their libraries as "preview" HOT 1
- backfill .repo-metadata.json files missing support URLs.
- Update the `Client Libraries Issues` link(s) in the README to point to template for filing an issue HOT 1
- Update `updateapilist.py` script to avoid making API requests for fetching the list of clients.
- add issue tracker links to individual packages' READMEs
- Support Retry() while using response iterator
- Add support for Github Merge Queue
- Warning: a recent release failed
- Documentation or feature request for dereferencing URIs in API responses HOT 2
- Add support for `monitoring.regex.full_match` in the `google-cloud-monitoring`
- Dialogflow CX Python API doesn't return any tool call from the agent HOT 7
- google-cloud-run, ContainerOverride is missing command HOT 9
- Improve gRPC error message when request is invalid HOT 7
- compute_v1_generated_forwarding_rules_insert_sync.py not running in async fashion
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from google-cloud-python.