Questions tagged [timeoutexception]

TimeoutException is thrown when the time allotted for a process or operation has expired.

TimeoutException is thrown when the time allotted for a process or operation has expired.

427 questions
2
votes
1 answer

Timeout Exception when trying to connect Arduino to Unity

I instantly get Timeout Exception when i press play on Unity This is my Unity code 'comment to skip error on stackoverflow comment to skip error on stackoverflow' using UnityEngine; using System.Collections; using System.IO.Ports; using…
2
votes
1 answer

Visual Studio 2019 - Angular 8 - Timeout Exception

I'm using the following: Windows 10 64 Bit Visual Studio 2019 Community (16.3.3) Create New Project ASP.NET Core Web Application .NET Core / ASP.NET Core 3.0 Select the Angular template Create From package.json in the ClientApp folder, the Angular…
Gilbert
  • 37
  • 4
2
votes
2 answers

How to fix catching TimeoutException?

How can I catch TimeoutException? I want to catch TimeoutException after 3 secs. But after 3 secs it prints out TimeoutException whereas It's too long. Timeout! is expected. With console application it doesn't catch TimeoutException. public static…
OBO
  • 57
  • 1
  • 6
2
votes
3 answers

Timeout expired

I am writing C# code and using LINQ and some stored procedures, i am careful about opening and closing the connections but i keep getting this error. Timeout expired. The timeout period elapsed prior to obtaining a connection from the pool. This…
Bastardo
  • 4,144
  • 9
  • 41
  • 60
2
votes
1 answer

Android Admob Failed to load ad: 0 - Error waiting for future TimeoutException Problem with OREO only

I am facing some issues with Admob, I don't know why but it's problem with OREO only. I am getting following errors If I run application in OREO only, in other versions working perfectly. I searched a lot on Google, SO but didn't find any…
Pratik Butani
  • 60,504
  • 58
  • 273
  • 437
2
votes
2 answers

Timeout while receiving message with Mongo Connection pooling using java

In production we are connecting with a MongoDB using Java (connection pooling). Every day we are getting almost 500 requests with the error below (MongoSocketReadTimeoutException) and we are not using any complex query. Could it be stale Mongo…
2
votes
0 answers

Getting random timeouts when connecting to server

I randomly get a timeout exception when making a request to the server. I've been trying httpwebrequest, restsharp and httpclient. I can't use HttpClient because I need to add custom certificates and they're not implemented. This is what I've found…
2
votes
2 answers

How to set timeout of soapclient in .net core project

I have to use a SOAP service in a .Net Core 2.0 project. I added service reference as described in following link: (Missing link, 404) Service is working fine for some methods. However, some methods are taking long time (due to the operations…
nooaa
  • 399
  • 1
  • 6
  • 17
2
votes
0 answers

setTimeLimit() internal behavior

Could someone walk me through the specific side effects and internals of base::setTimeLimit()? Reason: I am trying to impose optional timeouts for drake targets, and I turned to R.utils::withTimeout(), which uses base::setTimeLimit(). Drake timeouts…
landau
  • 5,636
  • 1
  • 22
  • 50
2
votes
1 answer

Try/Except won't work with TimeoutException

I am trying to see if there if the comment section is enabled on a YouTube video. if it's not, the program should return to the top again. def bot1(): while True: # First search …
2
votes
1 answer

How to trigger failed test on timeout with waitForExpectations()?

I've recreated the example from here: http://www.mokacoding.com/blog/testing-callbacks-in-swift-with-xctest/. I want to test for a timeout using waitForExpectations(). This should mimic a long running process that has timed out. To do this, I've set…
4thSpace
  • 43,672
  • 97
  • 296
  • 475
2
votes
1 answer

Detect TimeoutException on server side WCF

I have a WCF service that has some operations that may take long... The client receives a TimeoutException, but the server continues executing after the long operation. Server: public void doSomeWork(TransmissionObject o) { doDBOperation1(o);…
2
votes
1 answer

Timeout last 10 min in Tomcat 7

I have deployed a webapp in Tomcat 7, and I'm not using Eclipse, but when I run application last 10 min appear a timeout exception, exactly: Read timed out. I've tried to change: In web.xml: session-timeout 30 In server.xml I…
JM39370
  • 31
  • 3
2
votes
0 answers

Google Cloud Function takes too long time

I've just started using google cloud functions. And they behave in a strange way (or I'm doing something wrong). I have the following function which recalculates the average rating once user rates some item exports.onItemRated =…
2
votes
3 answers

What is the best exception type to use for an I/O timeout?

I've written a Java class that implements a "lock file" to prevent a period job from running more than once concurrently. It's based upon java.nio.channels.FileChannel.tryLock and works quite well. My class allows client code to supply a timeout…
Christopher Schultz
  • 20,221
  • 9
  • 60
  • 77