Skip to main content
Stack Overflow for Teams is now Stack Internal: See how we’re powering the human intelligence layer of enterprise AI. Read more >
Filter by
Sorted by
Tagged with
2 votes
1 answer
192 views

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 ...
Pablo Rios's user avatar
0 votes
3 answers
2k views

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 ...
vs777's user avatar
  • 644
0 votes
1 answer
79 views

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 ...
thibsc's user avatar
  • 4,101
2 votes
1 answer
90 views

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 ...
u238825's user avatar
  • 77
0 votes
0 answers
91 views

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:...
Vish's user avatar
  • 184
0 votes
0 answers
104 views

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 ...
Bowerick Wowbagger's user avatar
1 vote
0 answers
192 views

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 ...
kopi_b's user avatar
  • 1,493
0 votes
1 answer
2k views

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 ...
Keerthana Hemachandran's user avatar
1 vote
0 answers
147 views

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 ...
JulieFrancis's user avatar
0 votes
1 answer
71 views

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). ...
Luke's user avatar
  • 2,496
0 votes
1 answer
863 views

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 ...
TYG's user avatar
  • 29
0 votes
0 answers
1k views

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's user avatar
0 votes
0 answers
817 views

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 ...
Preethi H R 's user avatar
1 vote
0 answers
133 views

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....
tyro's user avatar
  • 805
1 vote
1 answer
1k views

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 ...
apoorva sharma's user avatar
0 votes
0 answers
45 views

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 ...
Night Rider's user avatar
1 vote
1 answer
275 views

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 ...
Mohammed Amine Jallouli's user avatar
0 votes
0 answers
166 views

In one of my code to get static resources from microservice I have used following code. response = proxyClientStaticResource.execute(getTargetHost(servletRequest), proxyRequest); here ...
Pratik Goswami's user avatar
0 votes
1 answer
1k views

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 ...
ZMobile's user avatar
1 vote
0 answers
2k views

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 ...
Vince's user avatar
  • 1,699
3 votes
2 answers
9k views

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 ...
Maitreyee Mehta's user avatar
0 votes
1 answer
287 views

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....
Tartar's user avatar
  • 5,492
3 votes
1 answer
8k views

I created an Apache HTTP client CloseableHttpClient client = HttpClients.custom() .setMaxConnPerRoute(25) .setMaxConnTotal(50) ....
Pavel Petrashov's user avatar
1 vote
1 answer
210 views

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 ...
Alfred LOK's user avatar
-1 votes
2 answers
4k views

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<...
Mahm00d's user avatar
  • 3,927
0 votes
0 answers
2k views

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 ...
David's user avatar
  • 1
0 votes
1 answer
977 views

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 ...
Ajay Venkatesh's user avatar
0 votes
2 answers
3k views

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 { ...
Вадим Непомнящий's user avatar
2 votes
0 answers
274 views

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 ...
Anwar Elsayed's user avatar
70 votes
24 answers
171k views

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 ...
Mehran Khan's user avatar
  • 1,175
0 votes
1 answer
936 views

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 ...
revy's user avatar
  • 4,817
2 votes
0 answers
1k views

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 ...
pjj's user avatar
  • 2,143
1 vote
1 answer
2k views

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 : ...
Ragini's user avatar
  • 785
1 vote
2 answers
5k views

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 ...
Simran Makandar's user avatar
0 votes
0 answers
2k views

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 ...
Frédéric Thomas's user avatar
0 votes
1 answer
305 views

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 ...
Thr's user avatar
  • 43
0 votes
0 answers
538 views

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 ...
Tina's user avatar
  • 1
2 votes
2 answers
6k views

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 ...
Varghese Tony's user avatar
2 votes
0 answers
2k views

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 ...
user09's user avatar
  • 966
1 vote
0 answers
1k views

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 ...
sadique urf arbaz's user avatar
2 votes
2 answers
16k views

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 ...
surendrapanday's user avatar
0 votes
1 answer
297 views

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 ...
user1829449's user avatar
1 vote
0 answers
340 views

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 ...
Midnight's user avatar
  • 443
0 votes
1 answer
524 views

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 ...
shady2020's user avatar
  • 115
-1 votes
1 answer
315 views

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 ...
lzn202's user avatar
  • 1
0 votes
0 answers
213 views

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. ...
Farmer John's user avatar
0 votes
0 answers
3k views

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="...
PiotrekM's user avatar
2 votes
0 answers
7k views

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 ...
GNG's user avatar
  • 1,611
2 votes
0 answers
215 views

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, ...
Deny 's user avatar
  • 23
0 votes
1 answer
5k views

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 ) { ...
Mariusz's user avatar
  • 1,985

1
2 3 4 5 6