okhttp Questions
4
Solved
I'm using spring-boot with WebClient, which is autowired as a bean.
Problem: when writing a junit integration test, I have to use okhttp MockWebServer. This mock always starts up on a random port,...
Cashier asked 24/7, 2019 at 15:55
2
I installed the new version of Android Studio and did update of my project (without changing dependencies) and i had this issue:
Missing class com.google.protobuf.java_com_google_android_gmscore_sd...
Agentival asked 20/4, 2023 at 11:8
7
Solved
[edit: If you are here for Let's Encrypt expiry event, this was extended to 2024 https://letsencrypt.org/2020/12/21/extending-android-compatibility.html], but is now ending this year https://letsen...
Wormseed asked 15/11, 2020 at 12:19
3
I'm unable to run any tests or run the app or debugger because of this error:
`Unable to find method void org.jetbrains.kotlin.gradle.dsl.KotlinJvmOptions.setUseIR(boolean)`
I've tried all of the ...
Urina asked 21/10, 2021 at 6:19
5
I want to import okhttp source code (not jar) to android studio as a module. Any suggestions on that ? Thanks !
Lona asked 12/12, 2014 at 0:36
3
Solved
In our app I download an image file with this code. I need to show download progress(downloaded bytes in percentage) on UI. How I can get download progress in this code? I searched for solution, bu...
4
Solved
Is there any way to get downloading file progress when using square`s OkHttp?
I did not find any solution in Recipes.
They have class Call which can get content asynchronically, but there is no m...
Liner asked 30/9, 2014 at 6:39
4
Solved
I use okhttp library for download files in android. I download successfully. But something is wrong when I pause and resume download.
Response request = new Request.Builder().url(url).build();
Re...
Mcrae asked 11/4, 2017 at 17:27
8
Solved
I am working on android studio and fetching some data from the web. I tried using OkHttpClient and also added jars to my project folder but still i am unable to import it.
It shows can't resolve ...
10
I'm trying to use OkHttp 3.6.0 with Elasticsearch and I'm stuck with sending requests to the Elasticsearch Multi GET API.
It requires sending an HTTP GET request with a request body. Unfortunately...
10
Solved
I am creating an android application which uses https for communication with the server. I am using retrofit and OkHttp for making requests. These works fine for standard http requests. The followi...
2
Solved
I am sending a request to server and getting Collection + Json in responce. Every thing is perfect in PostMan.
But when I am doing same things in code using OKHTTP, I am getting some unreadable ...
4
Solved
I know that okhttp3 library by default it adds the header Accept-Encoding: gzip and decodes the response automatically for us.
The problem I'm dealing with a host that only accepts a header like:...
4
Using OkHttp by Square https://github.com/square/okhttp, how can I:
Retrieve a cookie returned from the server
Store the cookie for upcoming requests
Use the stored cookie in subsequent requests
...
9
Solved
Retrofit 2 example tutorial but GsonConverterFactory display error "Cannot resolve symbol"
I'm trying to follow Retrofit's 2 tutorial, but on this part of the code there is a GsonConverterFactory that displays error Cannot resolve symbol:
public class ServiceGenerator {
public static ...
Casillas asked 23/10, 2015 at 14:9
13
Solved
In my application i want get data from server, for get connect to server i used Retrofit, OkHttp.
But when running application, show me force close error.
In android api 21+ is not error, but below...
4
Solved
Is there a workaround for this exception? looking at this issue on github it sounds like it might be an android bug, something about the hostname having an underscore character or something.
This...
Cassation asked 27/7, 2018 at 18:47
3
Solved
I'm trying to process a server response which is GZIP'd. The response comes with a header
Content-Type: application/x-gzip
but does not have header
Content-Encoding: gzip
If I add that heade...
4
I have an android .aar library built and I am trying to integrate it with one of the projects. When the app tries to open the initial screen of the .aar library where I have API call using retrofit...
4
Solved
I got StreamResetException: stream was reset: INTERNAL_ERROR from OkHttp. What's the problem?
Here's the logs.
I/okhttp.OkHttpClient: <-- 200 https://www.example.com/user/list (396ms)
I/okhttp.O...
3
I am currently using a YAML file to generate the models and the API clients using the swagger plugin and I am using Feign OkHttpClient to make requests to the API, the problem here is the client en...
Scarf asked 31/10, 2018 at 19:7
10
Solved
I used Retrofit in order to make HTTP requests and JSON parsing and I loved the way to turn on debug logs. Logs allow to see body requests, URL... which is very useful. As Retrofit use OkHttp, I'm ...
Lorilee asked 25/7, 2014 at 9:17
5
Solved
I try to upload an image from an Android App to a Django server using Retrofit 2 and OkHttp3.
For that, I used to create a RequestBody instance using the following lines:
RequestBody requestImageF...
Tenne asked 1/11, 2019 at 14:11
2
I'm trying to add a saved authentication cookie to further requests by utilizing a CookieJar. And while getting a correct authentication cookie and saving it to the jar is working great, when inspe...
2
java, okhttp, I get these exception: java.lang.NoClassDefFoundError: okio/Buffer, without module not
I use java 17 and okhttp-4.9.3. The call is:
OkHttpClient httpClient = new OkHttpClient.Builder().build();
Running the program, i get the exception:
Exception in thread "ReadStationsThread&qu...
1 Next >
© 2022 - 2025 — McMap. All rights reserved.