okhttp

Okhttp java.net.ProtocolException: unexpected end of stream

Okhttp java.net.ProtocolException: unexpected end of stream Question: im currently working on Android aplication and im making a simple GET request using okttp3. Im using my flask aplication as the API endpoint. Code Android: OkHttpClient client = new OkHttpClient(); final Request request = new Request.Builder() .url(url) .build(); client.newCall(request).enqueue(new Callback() { @Override public void onResponse(@NotNull Call call, …

Total answers: 3