getting too many follow-up request as response of request

时间:2018-02-03 08:17:30

标签: java web-services tomcat retrofit http-error

we have a Restful web service created using Jersey and running on TomEE 7.0.3

we are using Android platform for client-side and it's using Retrofit for having communication with the server.

our system is modular and contains more than 14 parts.

about 3 weeks (until now), sometimes the clients getting too many follow-up requests as the response.

we searched for it in here and retrofit issues in github.

they said that it might be server falt so we trace the request with ngrep command on the server.

we saw that server was getting the request and also responding to it correctly even when clients get follow-up.

we also test this matter with different networks and this matter still remains.

so what else could cause this problem?

1 个答案:

答案 0 :(得分:0)

经过多次测试后,我们意识到此错误仅适用于Android平台(我们在Android平台收到Too many follow up request时使用Postman测试了API。

所以经过一些更多的测试,我们发现,当Android平台获得408作为响应代码时,他们会显示此消息。我们更改了状态代码并解决了这个问题。

我将此问题放在github上的square/okhttp存储库中,并在其上放置bug标记。

你可以看到它here

----更新----

他们说它已在OkHttp v3.10

中修复