遇到个怪事,我进到在 K8s 里的 pod ,已经 curl 可以访问了。但是代码里直接 timeout 。什么鬼。
有大佬遇到过类似的吗,毫无头绪
遇到个怪事,我进到在 K8s 里的 pod ,已经 curl 可以访问了。但是代码里直接 timeout 。什么鬼。
有大佬遇到过类似的吗,毫无头绪
|
chendyJul 22, 2022
1
开 debug 日志,看看发了啥请求,卡在哪一步
|
|
2
@chendy 请求已经抓出来了"I/O error on GET request for \"http://178.104.163.72:31300/users/list\": Read timed out; nested exception is java.net.SocketTimeoutException: Read timed out",
我直接在容器里 curl http://178.104.163.72:31300/users/list 是能访问的 |
|
issakchillJul 22, 2022
3
换个 http client 先试试效果?
|