dukecon / dukecon_android

Apache License 2.0
1 stars 1 forks source link

App crashes if timeout occures during a network call #29

Closed michalharakal closed 6 years ago

michalharakal commented 6 years ago

Caused by java.net.SocketTimeoutException failed to connect to programm.javaland.eu/85.214.231.45 (port 443) after 10000ms libcore.io.IoBridge.connectErrno (IoBridge.java:169) arrow_drop_down java.net.Socket.connect (Socket.java:882) arrow_right okhttp3.internal.platform.AndroidPlatform.connectSocket (AndroidPlatform.java:70) okhttp3.internal.connection.RealConnection.connectSocket (RealConnection.java:238) okhttp3.internal.connection.RealConnection.connect (RealConnection.java:158) okhttp3.internal.connection.StreamAllocation.findConnection (StreamAllocation.java:256) okhttp3.internal.connection.StreamAllocation.findHealthyConnection (StreamAllocation.java:134) okhttp3.internal.connection.StreamAllocation.newStream (StreamAllocation.java:113) okhttp3.internal.connection.ConnectInterceptor.intercept (ConnectInterceptor.java:42) okhttp3.internal.http.RealInterceptorChain.proceed (RealInterceptorChain.java:147) okhttp3.internal.http.RealInterceptorChain.proceed (RealInterceptorChain.java:121) okhttp3.internal.cache.CacheInterceptor.intercept (CacheInterceptor.java:93) okhttp3.internal.http.RealInterceptorChain.proceed (RealInterceptorChain.java:147) okhttp3.internal.http.RealInterceptorChain.proceed (RealInterceptorChain.java:121) okhttp3.internal.http.BridgeInterceptor.intercept (BridgeInterceptor.java:93) okhttp3.internal.http.RealInterceptorChain.proceed (RealInterceptorChain.java:147) okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept (RetryAndFollowUpInterceptor.java:125) okhttp3.internal.http.RealInterceptorChain.proceed (RealInterceptorChain.java:147) okhttp3.internal.http.RealInterceptorChain.proceed (RealInterceptorChain.java:121) okhttp3.logging.HttpLoggingInterceptor.intercept (HttpLoggingInterceptor.java:212) okhttp3.internal.http.RealInterceptorChain.proceed (RealInterceptorChain.java:147) okhttp3.internal.http.RealInterceptorChain.proceed (RealInterceptorChain.java:121) okhttp3.RealCall.getResponseWithInterceptorChain (RealCall.java:200) okhttp3.RealCall.execute (RealCall.java:77) retrofit2.OkHttpCall.execute (OkHttpCall.java:180) retrofit2.ExecutorCallAdapterFactory$ExecutorCallbackCall.execute (ExecutorCallAdapterFactory.java:91) org.dukecon.remote.mapper.EventRemoteImpl$getEvents$1.subscribe (EventRemoteImpl.kt:126) io.reactivex.internal.operators.single.SingleCreate.subscribeActual (SingleCreate.java:39) io.reactivex.Single.subscribe (Single.java:2703) io.reactivex.internal.operators.single.SingleFlatMap.subscribeActual (SingleFlatMap.java:36) io.reactivex.Single.subscribe (Single.java:2703) io.reactivex.internal.operators.single.SingleMap.subscribeActual (SingleMap.java:33) io.reactivex.Single.subscribe (Single.java:2703) io.reactivex.internal.operators.single.SingleMap.subscribeActual (SingleMap.java:33) io.reactivex.Single.subscribe (Single.java:2703) io.reactivex.internal.operators.single.SingleSubscribeOn$SubscribeOnObserver.run (SingleSubscribeOn.java:89) io.reactivex.internal.schedulers.ExecutorScheduler$ExecutorWorker$BooleanRunnable.run (ExecutorScheduler.java:260) java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1112) arrow_drop_down java.lang.Thread.run (Thread.java:818)