Questions tagged [socket-timeout-exception]

Signals that a timeout has occurred on a socket read or accept.

These exceptions are often occurring in a Java Platform, so read more in:

Class SocketTimeoutException

260 questions
0
votes
0 answers

SocketTimeoutException With OkHttp on Kotlin on PDA3505

I'm using this Chinese device PDA3505 which is android 6.0 and have written a kotlin application for it. To print something (it has a thermal printer) it needs to fetch print data from the server, which in hindsight works normally on Wi-Fi but when…
0
votes
0 answers

How can I identify lost internet connection and timeout MySQL upload in under 1 second? [while using AWS RDS and pymysql]

Context: I have a simple program that gets sensor data once per second and immediately uploads it to AWS RDS MySQL instance. However, I have very spotty network connection that constantly goes in and out. Half the time the data uploads in under 1…
0
votes
0 answers

org.openqa.selenium.WebDriverException: Could not proxy command to the remote server. Original error: timeout of 240000ms exceeded can anyone helpwith

org.openqa.selenium.WebDriverException: Could not proxy command to the remote server. Original error: timeout of 240000ms exceeded Getting error while redirecting from application to mobile browser couldnot get any idea to resolve this expecting can…
0
votes
0 answers

How to create a mock response or simulate socket timeout exception?

I am calling an external api and receiving a runtime exception for socket timeout. Is there a way I can recreate or mock simulate this socket timeout exception by creating a mock response.
Karan Nayyar
  • 666
  • 2
  • 7
  • 14
0
votes
0 answers

Getting java.net.SocketTimeoutException: Read timed out when making Jira Server Search Rest API call

I am making following Jira Issue Search Rest API call to fetch all the issues in a project having 1 or more issuelinks from my Jira instance and I am using pagination for collecting all issues from a project using startAt index query…
0
votes
0 answers

Getting SocketTimeOutException , what is diff between results I'm getting for 2 different time outs

On test and prod environment getting lot of socketTimeOut Exception when the timeout limit was 2sec the error rate was a lot 37% but there were successful calls as well not all of them failed. As a trail we tried increasing timeout limit to 10sec…
tyro
  • 765
  • 2
  • 13
  • 34
0
votes
0 answers

Getting SocketTimeOut Exception on a POST request in Jira

Recently, we have started facing some issues while trying to create a Project in Jira data center. We are getting “Request Timed out error” upon project creation on the UI. On further analysis of the logs and thread dumps, we noticed that it is…
0
votes
0 answers

Testing Exception different than thrown Exception

I have a method that throws Exception. Later on inside the method, there is a conditional checking the Instance type of the Exception cause, namely SocketTimeoutException: public methodName() throws Exception{ //some code...then... try{ …
0
votes
0 answers

Sockettimeoutexception is thrown after ConnecTimeout

I have request config set like below: RequestConfig requestConfig = RequestConfig.custom() .setConnectTimeout(5000) .setSocketTimeout(10000) .setConnectionRequestTimeout(5000).build(); Then using this config to submit a file to a server…
0
votes
0 answers

Prepare http servlet response in the case of socket timeout : Read time out Exception

In one of my code to get static resources from microservice I have used following code. response = proxyClientStaticResource.execute(getTargetHost(servletRequest), proxyRequest); here proxyClientStaticResource is instance of CloseableHTTPClient. I…
0
votes
1 answer

FirebaseAuthException: Timed out while making an API call: Read timed out

I have an android project I've started working on that connects to a backend API. Both the backend and the client use Firebase Authentication. The problem is that I've been running into an issue when updating a user's custom claims on the backend…
0
votes
1 answer

Apache 5 HttpClient Retry Strategy Not Working

I am trying to add a custom retry strategy to my HttpClient such that it retries on SocketTimeoutException and NoHttpResponseException. However, the custom retry strategy is not getting invoked in case of these errors. Please find the code snippets…
0
votes
1 answer

Android: Network call made with RxJava and OkHttp SocketTimeoutException

I have a simple API request which I make by using Retrofit/OkHttp. private fun getNext( nextId: Long ): Observable = userRepo.getNext(nextId) .map { it.toDomainObject() } The API replies 200, OK and it…
Tartar
  • 5,149
  • 16
  • 63
  • 104
0
votes
0 answers

Google Cloud Storage SocketTimeoutException: Read timed out

Doing a POC for using Google Cloud Storage. We are testing archiving with Rubrik to Google and a few times a week I am seeing SocketTimeoutException: Read timed out. The status.cloud.google.com site do not show any outages. Before I request for paid…
0
votes
1 answer

DeleteByQueryRequest socket timeout exception - java high level rest client api

I'm a beginner to elasticsearch and I want to delete a huge amount of document which matches to the particular query. I'm using DeleteByQueryRequest for this purpose. I tried the code below. String fileName="output2.log"; RestHighLevelClient client…