Closed sumbulalvi closed 9 years ago
Is it happening consistently with the same image(s)?
What customizations did you make to the client (getOkHttpClient
)?
Few ideas:
I think you should print all headers sent and received like they have in their LoggingInterceptor
example to have something to compare to succeeding requests. Modify your interceptor to branch for the 400 response code and read the response body's stream in case there's some textual clue, maybe even print out more about the response than usual.
In any case I don't think it's a Glide issue, you would probably have the same problems just sending the same requests via OkHttp. Try to ask on their forums as well.
Closing this for now, feel free to reopen if you think there's something that needs to be fixed in Glide and you can provide more information.
Hi I'm getting the exception pasted below from Glide randomly after scrolling through lots and lots of posts. Each post has about 6 images, some Gifs and others .pngs (all around 10kb - 800kb). After scrolling through lots of posts, I start seeing random error code 400s for some images repeatedly.
We're using a custom
OkHttpClient
registered as follows in our theGlideModule
class.When I remove the custom header interceptor set on the
OkHttpClient
, we do not receive these random 400 errors anymore. Do you know what could be causing this problem? Any insight would be appreciated.From
loadData(Priority priority)
, an example of a failing request I'm seeing is:Associated response: