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

unexpected end of stream on Connection #85

Open
TangAnna opened this issue Aug 11, 2021 · 1 comment
Open

unexpected end of stream on Connection #85

TangAnna opened this issue Aug 11, 2021 · 1 comment

Comments

@TangAnna
Copy link

项目中请求接口频繁出现unexpected end of stream on Connection异常
在网上搜索过解决方法:
1.retryOnConnectionFailure()设置成true
header中配置
2.hashMap.put("Connection", "close");
3.hashMap.put("Accept-Encoding", "identity");
这些办法都没有解决,经常出现这个错误,过一会自己又好了,不知道这个问题是出现在前端还是后端,看到有说是OKhttp的问题有说和tcp连接有关。
如果您有时间看到希望能帮忙回复下解决方法和问题的原因,谢谢

@TangAnna
Copy link
Author

image
具体的错误信息截图

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

1 participant