-
Notifications
You must be signed in to change notification settings - Fork 375
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
google.api_core.exceptions.RetryError: Deadline of 60.0s exceeded while calling target function, last exception: 503 Getting metadata from plugin failed with error: ('invalid_grant: Bad Request', {'error': 'invalid_grant', 'error_description': 'Bad Request'}) #117
Comments
I also encountered this problem GRPC returns 503, but my error is google.api_core.exceptions.RetryError: Deadline of 60.0s exceeded while calling target function, last exception: 503 failed to connect to all addresses; last error: UNKNOWN: ipv4 :172.217.160.74:443: Failed to connect to remote host: FD Shutdown. IP cannot be accessed |
The same problem encountered by me |
You can bypass GRPC and use rest: genai.configure(api_key=GOOGLE_API_KEY,transport='rest') |
@huqin-RM thanks that worked, I'm integrating it into the Swarms framework that enables developers to Build, Deploy, and Scale Reliable Autonomous Agents! And, here is the docs for our abstracted away Gemini wrapper: |
This works, thank you very much |
It really works. |
Thank you, it's worked. And I still want to know why you know this way can work? |
|
Thank you. You have a clear way to solve problem. |
Thanks a lot.It works and solves a problem that has been bothering me for three weeks. |
I/m having this error msg now: |
In my case the problem was docker, I reinstalled the docker to fix the problem (though I acknowledge there might be a better solution) |
The problem with GRPC is still same even after two months. Hoping that the problem with GRPC will be solved soon. Facing same issue with |
This solved my issue😄. You should replace import os
os.environ['http_proxy'] = 'http://127.0.0.1:port'
os.environ['https_proxy'] = 'http://127.0.0.1:port'
os.environ['all_proxy'] = 'socks5://127.0.0.1:port' |
Thanks for sharing! The problem that has bothered me for a long time does not seem to be found in the official document 😂 |
genai.configure(api_key=GOOGLE_API_KEY,transport='rest') |
Thanks! It really works. |
Lots happened in this thread - is there anything left we can help with? If not, we'll close this one. |
Marking this issue as stale since it has been open for 14 days with no activity. This issue will be closed if no further activity occurs. |
This issue was closed because it has been inactive for 28 days. Please post a new issue if you need further assistance. Thanks! |
Description of the bug:
package verison: 0.3.1
Actual vs expected behavior:
No response
Any other information you'd like to share?
No response
The text was updated successfully, but these errors were encountered: