Retrofit network calls fails with a Protocol Exception suddenly in a working app. The app was working till yesterday and today all the network calls fails. The calls works f
I am using OkHttp2 (2.7.5) and I solved this issue by forcing the client to use HTTP 1.1 protocol
OkHttp2
HTTP 1.1
OkHttpClient client = new OkHttpClient(); client.setProtocols(Arrays.asList(Protocol.HTTP_1_1)); // <- add this line