Skip to content
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

requests 超时问题 #543

Open
0x1306a94 opened this issue May 12, 2024 · 3 comments
Open

requests 超时问题 #543

0x1306a94 opened this issue May 12, 2024 · 3 comments

Comments

@0x1306a94
Copy link

  • 使用requests发起请求,超时后response 为 null.
  • 是不是只要是response 为null, 就是超时的原因哇
@ithewei
Copy link
Owner

ithewei commented May 15, 2024

不一定,也有可能是没连接上,连接中断等原因

@0x1306a94
Copy link
Author

@ithewei 后面是否可以考虑下,返回具体错误呢?

@ithewei
Copy link
Owner

ithewei commented May 17, 2024

直接使用HttpClient.send接口会返回带错误码的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants