253 questions
2
votes
1
answer
192
views
google-api-python-client random timeout error
I have project that involves taking a picture every one hour with a Raspberry and saving it to Google Drive. I'm using the google-api-python-client to connect to a Google Drive and apscheduler to ...
0
votes
3
answers
2k
views
RestTemplate ResourceAccessException :Read Timed Out
I have a SpringBoot_3.2.1/JDK17/Tomcat10 application where I am using a RestTemplate.
At some point it makes a call :
RestTemplate template = new RestTemplate();
template.exchange( ,,,, );
My call ...
0
votes
1
answer
79
views
How to detect before throwing SocketException a closed connection?
I try to write a TcpClientPool to manage a KeepAlive behavior with the host
public class TcpClientPool : IDisposable
{
private readonly ConcurrentDictionary<string, TcpClient> _clients = new ...
2
votes
1
answer
90
views
Getting SocketTimeoutException error while trying to read a feature file in Karate
In one of our use case, we are trying to read a feature file that's sole purpose is to Authenticate the user. From it's response, I am then extracting token and sessionId information that would be ...
0
votes
0
answers
91
views
Xero API SocketTimeoutException
I am facing below issue while fetching data from Xero.
javax.ws.rs.ProcessingException:java.net.SocketTimeoutException: SocketTimeoutException invoking
https://api.xero.com/api.xro/2.0/Payments?page=1:...
0
votes
0
answers
104
views
FTPClient (Apache Commons)
I am getting a SocketTimeoutException while uploading a file. Retrieve file works fine for 2 files but then it fails on uploading different 2 files. The exception occurs during first file upload. This ...
1
vote
0
answers
192
views
Android Quick Setting SocketTimeoutException
I recently got a power plug with WIFI to control a lamp. Toggling the lamp on/off works great when calling the URL from a browser.
For more convenience, I wanted to implement a quick settings toggle ...
0
votes
1
answer
2k
views
java.net.SocketTimeoutException - socketTimeout in Elastic search client does not work
We have a spring boot application that connects to ELK using Elasticsearch Client and retrieves data by passing a time window(from DateTime and To DateTime).
If the window exceeds 16 hours , we are ...
1
vote
0
answers
147
views
What is causing java.net.SocketTimeoutException: Read timed out while writing large file to REDIS
Our microservice is writing large volume of data to redis. Since the sequential processing is taking nearly 50 min to process the file, i tried to implement asynchronous processing.
Following are the ...
0
votes
1
answer
71
views
WCF service aborts in seconds but timeout is '23:00:00'
I have a WCF service which is producing an error "socket connection was aborted" when connecting to a website from a remote machine (if I use localhost on the web server there is no issue). ...
0
votes
1
answer
863
views
How do I stop java.net.SocketTimeoutException: timeout whilst using the ChatGPT API for my Android app?
I have the issue where whenever I attempt to get a response from the ChatGPT Java API by Theo Kanning, I get the error message java.net.SocketTimeoutException: timeout after waiting ~10 seconds. I was ...
0
votes
0
answers
1k
views
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.
0
votes
0
answers
817
views
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 ...
1
vote
0
answers
133
views
What should I try next in order to minimise/eliminate java.net.SocketTimeoutException: timeout spring retry
I get lots of events to process in RabbitMq and then those get forward to service 1 to process and after some processing the data, there is an internal call to a micro service2. However, I do get java....
1
vote
1
answer
1k
views
How to change the socket time out value in Jira?
We are trying to change the socket timeout in Jira as some of the REST API calls are taking too long to respond due to which we are getting Request Time Out Error.
For changing it, we tried the ...
0
votes
0
answers
45
views
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 ...
1
vote
1
answer
275
views
Connnections handling
So I've been using karate for a while now, and there has been an issue we were facing since over the last year: org.apache.http.conn.ConnectTimeoutException
Other threads about that mentioned ...
0
votes
0
answers
166
views
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 ...
0
votes
1
answer
1k
views
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 ...
1
vote
0
answers
2k
views
SocketTimeoutException for all kind of timeouts in OkHttp
When communicating with a server from an Android device, timeouts happen and I'd like to make a difference between read timeouts and other timeouts. In other words, I'd like to know if there is a ...
3
votes
2
answers
9k
views
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 ...
0
votes
1
answer
287
views
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<NextData> =
userRepo.getNext(nextId)
.map { it....
3
votes
1
answer
8k
views
Apache HttpClient throws java.net.SocketException: Connection reset if I use it as singletone
I created an Apache HTTP client
CloseableHttpClient client = HttpClients.custom()
.setMaxConnPerRoute(25)
.setMaxConnTotal(50)
....
1
vote
1
answer
210
views
How to solve Socket Accept Timeout [closed]
I have a power on-off device to control. If the device is connected to the network, my code works fine. I remove the device from the network on purpose to test it as if the device malfunctions (like ...
-1
votes
2
answers
4k
views
How can I catch the SocketTimeoutException "raised" in setSoTimeout()?
I am doing socket programming in Java and I am confused by setSoTimeout() and its exceptions.
I have a simple Callable<String> on the server-side for accepting connections:
private Callable<...
0
votes
0
answers
2k
views
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 ...
0
votes
1
answer
977
views
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 ...
0
votes
2
answers
3k
views
java.net.SocketTimeoutException: Connect timed out
An http request to any site throws a SocketTimeoutException. What could this be related to?
public class Main {
public static void main(String[] args) {
try {
...
2
votes
0
answers
274
views
My Android App give me SocketTimeoutException
Recently I am working on an android app, but there is something working with my APIs
my phone and my laptop at the same wifi,
here is the scenario
I send the request to API from the postman then go to ...
70
votes
24
answers
171k
views
npm ERR! code ERR_SOCKET_TIMEOUT on creating new project using ng new appname
Can somebody help me on this? i am getting following error:
Angular & Node version Installed
Angular CLI: 12.0.1
Node: 14.16.0
Package Manager: npm 7.11.2
OS: win32 x64
D:\Learning\Angular>ng ...
0
votes
1
answer
936
views
ECONNRESET & ESOCKETTIMEDOUT errors when testing high traffic load on express.js application and RDS MySQL 5.6
I have:
An express application which exposes a REST api and needs to connect to a MySQL database (see below)
An AWS RDS MySQL 5.6.34 database on a db.t2.medium instance
In the case of a single ...
2
votes
0
answers
1k
views
Stuck threads with RestTemplate despite read timeout and connection timeout
I am using Spring's RestTemplate and the HTTP factory I am using with it is HttpComponentsClientHttpRequestFactory.
I was experiencing many stuck threads while making HTTP calls because of issues with ...
1
vote
1
answer
2k
views
Android app is crashing on SocketTimeoutException in retrofit Interceptor
Following is my offline interceptor code. It crashes in case of low network and throws SocketTimeoutException. How to avoid app from crashing in this case?
internal class CacheOfflineInterceptor : ...
1
vote
2
answers
5k
views
Pyspark socket timeout error. return self._sock.recv_into(b) socket.timeout: timed out
I have written a spark program (Python 3.6 and Spark 2.3.2) for Collaborative Filtering Recommendation System that works on 2 cases:
Case 1: Item-based CF recommendation system
Case 2: User-based CF ...
0
votes
0
answers
2k
views
How to load ConfigMaps using kubernetes-config extension
I've been following https://quarkus.io/guides/kubernetes-config in order to create a configMap and test my Quarkus service into my CDK v3.5.0-1 before to push it to OpenShift 3.11 but ...
0
votes
1
answer
305
views
Mongo Socket timeout on Azure web app deployed in a container
I have an Azure Web App which is deployed with docker-compose. It runs a Rails app on v5.0.0 and the mongoid version is 6.1.
I've the Always On turned on (how ironic). But after a few moments of idle ...
0
votes
0
answers
538
views
java.net.SocketTimeoutException in JAVA okhttp client and AWS server php script
I want to send a formbody using okhttp in java from the Android APP client-side to check if new file is available on the server, and handle this request through a PHP script on AWS EC2 server to send ...
2
votes
2
answers
6k
views
Is there a way to simulate Socket and Connection timeout?
I have a certain piece of code that integrates with a third party using HTTP connection, which handles socket timeout and connection timeout differently.
I have been trying to simulate and test all ...
2
votes
0
answers
2k
views
MongoDB SocketException: : Connection reset
I have a spring boot applicaiton running which connects to mongoserver in azure cloud.
The app continuesly gets java.net.SocketException: Connection reset exception for the first request after 4 secs ...
1
vote
0
answers
1k
views
what are the possible reason for java.net.SocketTimeoutException
How can I check the possible reason for java.net.SocketTimeoutException.
I have a program that just pings to a website. however I am getting SocketTimeoutException. I know it is happening due to ...
2
votes
2
answers
16k
views
How to solve "Socket read timed out" when using hikari connection pool
I am developing an application using play framework (version 2.8.0), java(version 1.8) with an oracle database(version 12C).
There is only zero or one hit to the database in a day, I am getting below ...
0
votes
1
answer
297
views
JMeter SocketTimeout and OutofMemoryErrors
I have the following code in JSR223 Sampler and I get following errors when I run this jmeter command. Can anyone please advise if something is wrong with my code? I'm basically reading a image and ...
1
vote
0
answers
340
views
Why am I getting a timeout exception with flask on googles app engine when trying to append a value to a wtforms validtor?
I'm having trouble deploying a flask app to the Google app engine. It works fine when I run it locally but as soon as it's deployed to the app engine it fails. With two exceptions (I'm always getting ...
0
votes
1
answer
524
views
Retrofit 2.3 Handling SocketTimeoutException
I'm currently using Retrofit 2.3 and RxAndroid for Android as my network communications. Its working fine most of the time. But sometimes, I get a SocketTimeOut exception (I'm assuming due to issues ...
-1
votes
1
answer
315
views
Error SocketTimeoutException connecting to google in android
i'm having a problem with the connection for my app (Android). I'm using the following code to check if i have internet connection.
ConnectivityManager cm = (ConnectivityManager)context
...
0
votes
0
answers
213
views
Python3 socket settimeout() unstable during socket initiation
I'm trying to connect to a server on local_host that does nothing more than accept and close the connection. On the client initiation of the connection, I'd like to connect to server with timeout.
...
0
votes
0
answers
3k
views
Handle SocketTimeoutException in Apache Camel
I have a java application with Apache ServiceMix and Apache Camel.
Here is my Camel Spring XML configuration:
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="...
2
votes
0
answers
7k
views
Indexing a large dataset in elastic search causes java.net.SocketTimeoutException: 30,000 milliseconds timeout on connection http-outgoing-223 error
I am indexing a large dataset using Elasticsearch's high level REST client for JAVA. When I say "indexing", I mean creating the index, adding a mapping, adding a lot of data (8 million ...
2
votes
0
answers
215
views
poco Socket::select() APi not waiting for a file descriptor to become ready for gievn Poco::Timespan
I am using POCO library for socket connection.
I Notice poco select API doesn't wait till the poco::timespan.
ReadData() {
SocketList read;
SocketList write;
Socket::select(read, write, ...
0
votes
1
answer
5k
views
Exception "java.net.ConnectException: Connection timed out: connect" is thrown before specified timeout
I have following code:
import java.io.IOException;
import java.net.InetSocketAddress;
import java.net.Socket;
public class ScoketTimeoutMain
{
public static void main( String[] args )
{
...