Retrofit: Too many follow-up requests problem

Created on 3 Feb 2018  Â·  3Comments  Â·  Source: square/retrofit

hello,
I saw this on the issues: too many follow-up requests.

so we have this problem too and checked the server.
I posted the situation on StackOverflow

is this a bug in retrofit or okhttp?

Most helpful comment

That behavior is in OkHttp, not Retrofit.

On Mon, Feb 5, 2018, 6:58 AM Seyed Ali Roshan notifications@github.com
wrote:

it wasn't about the server
we realized that if android gets status code 408, it will show too many
follow up but this problem doesn't exist on other platforms like a
website (wrote by js). we change the returning status code to 410 and it
fixed now.
I don't know it's a bug or not but it's too bad that we can't use 408 as a
response code for our web service.

—
You are receiving this because you modified the open/close state.

Reply to this email directly, view it on GitHub
https://github.com/square/retrofit/issues/2630#issuecomment-363064427,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAEEEcA02tDzRwncp2daBuPfHKEs5M8bks5tRuz-gaJpZM4R4F2-
.

All 3 comments

Nether. This indicates a redirect loop between URLs. Instead of following it endlessly, OkHttp stops after 20 or so. You should correct the misconfiguration of the server.

@JakeWharton
it wasn't about the server
we realized that if android gets status code 408, it will show too many follow up but this problem doesn't exist on other platforms like a website (wrote by js). we change the returning status code to 410 and it is fixed now.
I don't know it's a bug or not but it's too bad that we can't use 408 as a response code for our web service.

That behavior is in OkHttp, not Retrofit.

On Mon, Feb 5, 2018, 6:58 AM Seyed Ali Roshan notifications@github.com
wrote:

it wasn't about the server
we realized that if android gets status code 408, it will show too many
follow up but this problem doesn't exist on other platforms like a
website (wrote by js). we change the returning status code to 410 and it
fixed now.
I don't know it's a bug or not but it's too bad that we can't use 408 as a
response code for our web service.

—
You are receiving this because you modified the open/close state.

Reply to this email directly, view it on GitHub
https://github.com/square/retrofit/issues/2630#issuecomment-363064427,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAEEEcA02tDzRwncp2daBuPfHKEs5M8bks5tRuz-gaJpZM4R4F2-
.

Was this page helpful?
0 / 5 - 0 ratings