Got a Java 1.8 app which calls out to a couple of json webservices with everything working just fine.
However, whilst changing the caching model for one of the services, I'm doing larger requests, so need to extend the timeout value, and I'm doing it per this question: How to set timeout in Retrofit library?
So I've created the OkHttp client, set it on my RestAdapter and the new timeouts are working just fine for the service I'm changing.
However... another completely unrelated service call in my app is now throwing 500 errors when it calls the service. If I remove the OkHttp dependency from my build.gradle file, the service works perfectly again - literally no code has changed, just the dependencies, so I'm assuming that this is some conflict between RetroFit and OkHttp (despite them both being built by the same guys).
Any ideas? Or is there an alternative client I can use in place of OkHttp to side-step the issue?
If it makes a difference, I'm using RetroFit 1.9.0 and OkHttp 2.7.0 (but I've tried a few different OkHttp versions).