B4A Question How to treat httpjob timeout? - wimpie3    
Nov 10, 2021I want to detect a timeout with httpjob.
I'm doing this:
Dim Job1 As HttpJob
Job1.Initialize(...)
Job1.Poststring(...)
Job1.GetRequest.Timeout =5000 ' 5 seconds
Wait For (j) JobDone(j...
link: PROBLEM SOLVED!
A timeout DOES indeed raise JobDone AND sets j.success to false, so there is no...
link:
No no, that can't be true. If we specify there should be a timeout for our httpjob...
link: , that can't be true. If we specify there should be a timeout for our httpjob, the timeout should fire...
B4A Question HttpUtils2Service/HttpJob timeout - drgottjr    
Nov 17, 2012.
I wanted to add/insert a timeout, as needed, when initializing an httpjob. If I correctly read some comments relating to timeouts, my understanding is that they will fire if nothing is being transmitted......
The timeout setting could be inserted like this directly into the httpjob.bas, but the hardcoding...
link: You can use this code:
Dim Job1 As HttpJob
Job1.Initialize(...)
Job1.Download(...) 'Or...
link: You can use this code:
Dim Job1 As HttpJob
Job1.Initialize(...)
Job1.Download(...) 'Or...
B4A Question httpjob.timeout - what is default value? - moster67    
May 13, 2014Jut wondering what is the default value of the httpjob.timeout?
Another related question....GetRequest.Timeout = 4000
After setting the timeout-value in above code-snippet, will the default...
link: Why is the app freezing in this case?
The job is handled by a background thread....
link: @DonManfred answer is correct.
The default timeout value is 30000 (30 seconds)....
link: try to log
log(JOB_CheckForSomething.GetRequest.Timeout)
after JOB_CheckForSomething.Download...
B4A Question HttpJob PostString timeout - Alessandro71    
Jan 22, 2022during a post operation, sometimes I get the following error
java.net.SocketTimeoutException: timeout
I'm trying to pinpoint the possible cause: can a very lenghty post data cause a timeout exception, or it can be caused only by a connection error or by the server not responding at all?
The timeout is already 30 seconds, and the message is logged exactly after 30 second from the post call...
link: use Postman to check and identify where the problem occurs....
B4A Question HttpJob timeout in receiver - Erel (first post)    
Jul 30, 2023
Is there any other way than using sleep?
or make another attempt if it fails....
link:
This means that the device isn't connected to the internet.
If you are making the request imme...
link:
Unable to resolve host error
This means that the device isn't connected to the internet.
If y...
link: Hello
I use HTTPJob in the receiver
There is no problem when the program is running and all...
B4i Question HttpJob timeout - Shay    
Mar 19, 2015I am using HttpJob class, how do I configure job timeout?...
link: https://www.b4x.com/android/forum/threads/httputils2-poststring-timeout.40228/#post-240139
cheers...
B4i Question httpjob request timeout error - Semen Matusovskiy (first post)    
Mar 21, 2020   
(1 reaction)At first job.Download("..."). Then job.GetRequest.Timeout = ...
If you set Timeout...
In this moment req is not initialized yet (so GetRequest.Timeout gives an error).
Exactly...
link:
At first, job.Download("...")
Then job.GetRequest.Timeout = ...
Problem solved...
link:
I tried a timeout in B4i 6.50. Log file looks so.
I'm also using B4i 6.50. I've tried...
link: I tried a timeout in B4i 6.50. Log file looks so.
ResponseError: The request timed out., status...
B4A Question HttpJob.PostString connection timeout - Computersmith64    
Feb 23, 2017 the B4J server from the B4A app using HttpJob.PostString, nothing happens for a while, then I get the following message in the log:
Error: org.apache.http.conn.ConnectTimeoutException: Connect to... As HttpJob
j.Initialize("send string", Me)
j.PostString(link, request)
from the B4A app...
link: Have you opened port 50144 (TCP) in Windows firewall?
Hi Erel,
I hadn't, but I have now & it still times out.
EDIT: It turn...
link: Have you opened port 50144 (TCP) in Windows firewall?...
B4A Question Httpjob's timeout - Peter Simpson (first post)    
Mar 17, 2014   
(3 reactions)The best way to check to see if you have an internet connection is to do the following.
Check/Tick ...
link: Thank you qsrtech. It seems illogical, but it's great !...
link: I get a java null pointer exception when I use the timeout parameter as follows - what am I doing...
B4A Question Wait For ...j As HttpJob - can be long... is there a way to exit it ? - JohnC (first post)    
Nov 1, 2024   
(1 reaction)https://www.b4x.com/android/forum/threads/how-to-treat-httpjob-timeout.135908/...
link:
https://www.b4x.com/android/forum/threads/how-to-treat-httpjob-timeout.135908/
Well i know...
Page: 1  
2  
3  
4  
5  
6  
7