Closed kyegomez closed 2 months ago
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
我也遇到了这个问题 GRPC 返回 503,但我的错误是 google.api_core.exceptions.RetryError: Deadline of 60.0s超过调用目标函数时,最后一个异常:503 无法连接到所有地址;最后一个错误:未知:ipv4:172.217.160.74:443:无法连接到远程主机:FD 关闭。 IP无法访问
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: https://swarms.apac.ai/en/latest/swarms/models/gemini/
我也遇到了这个问题 GRPC 返回 503,但我的错误是 google.api_core.exceptions.RetryError: Deadline of 60.0s超过调用目标函数时,最后一个异常:503 无法连接到所有地址;最后一个错误:未知:ipv4:172.217.160.74:443:无法连接到远程主机:FD 关闭。 IP无法访问
You can bypass GRPC and use rest:
genai.configure(api_key=GOOGLE_API_KEY,transport='rest')
This works, thank you very much
我也遇到了这个问题 GRPC 返回 503,但我的错误是 google.api_core.exceptions.RetryError: Deadline of 60.0s超过调用目标函数时,最后一个异常:503 无法连接到所有地址;最后一个错误:未知:ipv4:172.217.160.74:443:无法连接到远程主机:FD 关闭。 IP无法访问
You can bypass GRPC and use rest:
genai.configure(api_key=GOOGLE_API_KEY,transport='rest')
It really works.
我也遇到了这个问题 GRPC 返回 503,但我的错误是 google.api_core.exceptions.RetryError: Deadline of 60.0s超过调用目标函数时,最后一个异常:503 无法连接到所有地址;最后一个错误:未知:ipv4:172.217.160.74:443:无法连接到远程主机:FD 关闭。 IP无法访问
You can bypass GRPC and use rest:
genai.configure(api_key=GOOGLE_API_KEY,transport='rest')
Thank you, it's worked. And I still want to know why you know this way can work?
我也遇到了这个问题 GRPC Return 503,但我的错误是 google.api_core.exceptions.RetryError: Deadline of 60.0s 超过调用目标函数时,最后一个异常:503 无法连接到所有地址;最后一个错误:未知: ipv4:172.217.160.74:443:无法连接到远程主机:FD关闭。IP无法访问
您可以绕过 GRPC 并使用休息: genai.configure(api_key=GOOGLE_API_KEY,transport=“休息”)
谢谢,已经成功了。我还想知道为什么你知道这种方法可行? Because the example about REST in the official manual is to directly use curl to make API requests. I can run the command line directly from my terminal, so I'm sure it's not a network problem. Looking further at the pythonsdk source code, there are the following comments:
我也遇到了这个问题 GRPC Return 503,但我的错误是 google.api_core.exceptions.RetryError: Deadline of 60.0s 超过调用目标函数时,最后一个异常:503 无法连接到所有地址;最后一个错误:未知: ipv4:172.217.160.74:443:无法连接到远程主机:FD关闭。IP无法访问
您可以绕过 GRPC 并使用休息: genai.configure(api_key=GOOGLE_API_KEY,transport=“休息”)
谢谢,已经成功了。我还想知道为什么你知道这种方法可行? Because the example about REST in the official manual is to directly use curl to make API requests. I can run the command line directly from my terminal, so I'm sure it's not a network problem. Looking further at the pythonsdk source code, there are the following comments:
Thank you. You have a clear way to solve problem.
我也遇到了这个问题 GRPC Return 503,但我的错误是 google.api_core.exceptions.RetryError: Deadline of 60.0s 超过调用目标函数时,最后一个异常:503 无法连接到所有地址;最后一个错误:未知: ipv4:172.217.160.74:443:无法连接到远程主机:FD关闭。IP无法访问
您可以绕过 GRPC 并使用休息:
genai.configure(api_key=GOOGLE_API_KEY,transport=“休息”)
谢谢,已经成功了。我还想知道为什么你知道这种方法可行?
Because the example about REST in the official manual is to directly use curl to make API requests. I can run the command line directly from my terminal, so I'm sure it's not a network problem.
Looking further at the pythonsdk source code, there are the following comments:
Thanks a lot.It works and solves a problem that has been bothering me for three weeks.
我也遇到了这个问题 GRPC 返回 503,但我的错误是 google.api_core.exceptions.RetryError: Deadline of 60.0s超过调用目标函数时,最后一个异常:503 无法连接到所有地址;最后一个错误:未知:ipv4:172.217.160.74:443:无法连接到远程主机:FD 关闭。 IP无法访问
You can bypass GRPC and use rest:
genai.configure(api_key=GOOGLE_API_KEY,transport='rest')
I/m having this error msg now:
Traceback (most recent call last):
File "/Users/hulksi/Desktop/upload genreList/update(genreList).py", line 13, in
In my case the problem was docker, I reinstalled the docker to fix the problem (though I acknowledge there might be a better solution)
我也遇到了这个问题 GRPC 返回 503,但我的错误是 google.api_core.exceptions.RetryError: Deadline of 60.0s超过调用目标函数时,最后一个异常:503 无法连接到所有地址;最后一个错误:未知:ipv4:172.217.160.74:443:无法连接到远程主机:FD 关闭。 IP无法访问
You can bypass GRPC and use rest:
genai.configure(api_key=GOOGLE_API_KEY,transport='rest')
The problem with GRPC is still same even after two months.
But this transport='rest'
does solve the problem. Thanks
Hoping that the problem with GRPC will be solved soon. Facing same issue with TextGeneration
on VertexAI as well.
This solved my issue😄. You should replace port
with your proxy server's port number:
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'
我也遇到了这个问题 GRPC 返回 503,但我的错误是 google.api_core.exceptions.RetryError: Deadline of 60.0s超过调用目标函数时,最后一个异常:503 无法连接到所有地址;最后一个错误:未知:ipv4:172.217.160.74:443:无法连接到远程主机:FD 关闭。 IP无法访问
You can bypass GRPC and use rest:
genai.configure(api_key=GOOGLE_API_KEY,transport='rest')
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') The problem can be solved, but the streaming Q&A output will fail.
我也遇到了这个问题 GRPC 返回 503,但我的错误是 google.api_core.exceptions.RetryError: Deadline of 60.0s超过调用目标函数时,最后一个异常:503 无法连接到所有地址;最后一个错误:未知:ipv4:172.217.160.74:443:无法连接到远程主机:FD 关闭。 IP无法访问
You can bypass GRPC and use rest:
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