Log in or register to post comments

"Network request timeout" issue while using in 3G/2G Connectivity

August 5, 2013 - 3:07am #7

Hi,

I have been working with Cloud Recognition for android. I am getting "The network request has timed out, please check your internet connection and try again." whenever I use in 3G/2G internet connectivity but If I use in Wi-Fi network its working fine

Is there any possibilities to change the network request time ? or What is the alternative way to make it work..? Please help us ...

 

 

"Network request timeout" issue while using in 3G/2G Connectivit

August 5, 2013 - 5:42am #6

whenever I use in 3G/2G internet connectivity

Could you be more specific?

Is it 3G or 2G you have a problem with?  ..and which network?

 

Typically the timeout period cannot be customised.

 

N

 

"Network request timeout" issue while using in 3G/2G Connectivit

August 21, 2013 - 7:49am #5

I'm also facing the same problem with 2G networks.. But not on all devices.

I have this 'request timed out' problem in Micromax Bolt A35 (OS V2.3.x) mobile. But the App works fine in the same device with WiFi. Also the same service provider(SIM) with 2G network works fine with device like Karbon A21 (OS V4.x).

One thing I noticed is the device's GPRS speed which is 32-48 kbps for Micromax. Could that be a problem?

 

Thanks,

Ramesh

"Network request timeout" issue while using in 3G/2G Connectivit

August 21, 2013 - 8:01am #4

It may be. Do your targets include metadata, and if so how large is that? Also are you seeing the time-out when submitting the search query, or does it appear to get hung-up downloading the result?

"Network request timeout" issue while using in 3G/2G Connectivit

August 21, 2013 - 8:21am #3

The target meta data is 2 Bytes..it is a simple text file with a number in it...here is the log

 

08-21 20:45:41.606: V/ICamera(1615): setPreviewCallbackFlag(5)
08-21 20:45:41.726: I/System.out(1615): DefaultRequestDirector http execute enter loop 
08-21 20:45:41.726: D/O(1615): OSNSNetworkSystemetworkSystem_connect...
08-21 20:45:44.316: E/OSNetworkSystem(1615): OSNetworkSystem_connect fail result:-110
08-21 20:45:44.316: I/System.out(1615): DefaultRequestDirect http execute return 2exception!Connect to /173.194.127.222:443 timed out
08-21 20:45:44.536: W/GAV2(1615): Thread[GAThread,5,main]: Exception sending hit: ConnectTimeoutException
08-21 20:45:44.536: W/GAV2(1615): Thread[GAThread,5,main]: Connect to /173.194.127.222:443 timed out
08-21 20:45:46.266: E/OSNetworkSystem(1615): OSNetworkSystem_connect fail:timeout
08-21 20:45:46.266: I/System.out(1615): DefaultRequestDirect http execute return 2exception!Connect to /66.109.101.135:443 timed out
08-21 20:45:51.246: I/System.out(1615): DefaultRequestDirector http execute enter loop 
08-21 20:45:51.246: D/OSNetworkSystem(1615): OSNetworkSystem_connect...
08-21 20:45:51.666: I/System.out(1615): DefaultRequestDirector http execute enter loop 
08-21 20:45:51.666: D/OSNetworkSystem(1615): OSNetworkSystem_connect...
08-21 20:45:51.726: V/ICamera(1615): setPreviewCallbackFlag(0)
08-21 20:45:51.736: E/OSNetworkSystem(1615): OSNetworkSystem_connect fail:timeout
08-21 20:45:51.736: I/System.out(1615): DefaultRequestDirect http execute return 2exception!Connect to /54.243.174.13:443 timed out
 
 
Thanks,
Ramesh

"Network request timeout" issue while using in 3G/2G Connectivit

August 21, 2013 - 1:35pm #2

I think it is your connection rate. Here is what we typically advise, concerning the device connectivity..

 

Cloud Recognition apps require an Internet connection to work. The perceived recognition delay of a target may depend on the speed of the network connection. We recommend using a 3G or WiFi connection, slower connections can lead to degraded performance

"Network request timeout" issue while using in 3G/2G Connectivit

August 21, 2013 - 7:57pm #1

thanks for that...But, the same 2G connection (Same SIM) works fine on other mobile device. So, it looks like both the speeds (device GPRS speed + 2G connection). 

Can't we tweak the connection timeout properties? may be just increase the timeout for 2G?

 

Thanks,

Ramesh

Log in or register to post comments