Answer the question
In order to leave comments, you need to log in
How can I defeat the SocketTimeOut exception?
Good day to all.
When accessing the API (POST requests) using Retrofit 2, I fall off due to the SocketTimeOut exception.
I set timeouts in the OkHttp builder (callTimeout, connectTimeout, writeTimeout, readTimeout) to 5 minutes.
The query is completed in an average of 70 seconds according to the results of Postman (yes, not fast, but this is a backend problem and I'm not the one who solves it).
Setting timeouts in the client builder did not help, as you can see.
How can this problem be solved?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question