New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exception com.androidnetworking.error.ANError: com.androidnetworking.error.ANError: java.net.SocketTimeoutException #125
Comments
@Boyfox can u tell me more about the request like url, method and request parameters. |
Hi @amitshekhariitbhu , i can't found what is page who called to api, but my i can pass here my style using AndroidFastNetworking library, for example post request:
I always get response on the separately thread -> setExecutor(Executors.newSingleThreadExecutor()) |
Maybe simply need add try catch to executeSimpleRequest method in the InternalRunnable class of FAN(Fast Android Networking) library? and then in the catch will call to onError callback about timeout exception to Target |
My error is androidnetworking error ANerror only yahi likha aa raha he |
@kn9636 try increasing the timeout? |
Sir again error is coming |
Sir how to solve this problem |
how to solve this error "com.androidnetworking.error.ANError" |
@kn9636 Did you find the solution? @amitshekhariitbhu where to increase the timeout in app code or web APIs code..? |
com.androidnetworking.error.ANError: com.androidnetworking.error.ANError: java.net.SocketTimeoutException: timeout I have this error today but yesterday there is no such type error and also i don't check anything yesterday or today . this error is come today but yesterday there is no error |
Please help me for this kind of error .Is there is a server side probelm ? |
Here i have increase the connectTimeout in minutes.
|
Hi, I know maybe will be slowly my internet speed, I know maybe requests will be timeout, but why crash?
library not called to onError callback, crash when doing request:
Caused by java.net.SocketTimeoutException: java.net.PlainSocketImpl.read (PlainSocketImpl.java:488) java.net.PlainSocketImpl.access$000 (PlainSocketImpl.java:37) java.net.PlainSocketImpl$PlainSocketInputStream.read (PlainSocketImpl.java:237) okio.Okio$2.read (Okio.java:138) okio.AsyncTimeout$2.read (AsyncTimeout.java:236) okio.RealBufferedSource.indexOf (RealBufferedSource.java:325) okio.RealBufferedSource.indexOf (RealBufferedSource.java:314) okio.RealBufferedSource.readUtf8LineStrict (RealBufferedSource.java:210) okhttp3.internal.http1.Http1Codec.readResponseHeaders (Http1Codec.java:189) okhttp3.internal.http.CallServerInterceptor.intercept (CallServerInterceptor.java:67) okhttp3.internal.http.RealInterceptorChain.proceed (RealInterceptorChain.java:92) okhttp3.internal.connection.ConnectInterceptor.intercept (ConnectInterceptor.java:45) okhttp3.internal.http.RealInterceptorChain.proceed (RealInterceptorChain.java:92) okhttp3.internal.http.RealInterceptorChain.proceed (RealInterceptorChain.java:67) okhttp3.internal.cache.CacheInterceptor.intercept (CacheInterceptor.java:93) okhttp3.internal.http.RealInterceptorChain.proceed (RealInterceptorChain.java:92) okhttp3.internal.http.RealInterceptorChain.proceed (RealInterceptorChain.java:67) okhttp3.internal.http.BridgeInterceptor.intercept (BridgeInterceptor.java:93) okhttp3.internal.http.RealInterceptorChain.proceed (RealInterceptorChain.java:92) okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept (RetryAndFollowUpInterceptor.java:120) okhttp3.internal.http.RealInterceptorChain.proceed (RealInterceptorChain.java:92) okhttp3.internal.http.RealInterceptorChain.proceed (RealInterceptorChain.java:67) com.androidnetworking.interceptors.HttpLoggingInterceptor.intercept (HttpLoggingInterceptor.java:221) okhttp3.internal.http.RealInterceptorChain.proceed (RealInterceptorChain.java:92) okhttp3.internal.http.RealInterceptorChain.proceed (RealInterceptorChain.java:67) okhttp3.RealCall.getResponseWithInterceptorChain (RealCall.java:179) okhttp3.RealCall.execute (RealCall.java:63) com.androidnetworking.internal.InternalNetworking.performSimpleRequest (InternalNetworking.java:112) com.androidnetworking.internal.InternalRunnable.executeSimpleRequest (InternalRunnable.java:68) com.androidnetworking.internal.InternalRunnable.run (InternalRunnable.java:54) java.util.concurrent.Executors$RunnableAdapter.call (Executors.java:422) java.util.concurrent.FutureTask.run (FutureTask.java:237) java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1112) java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:587) com.androidnetworking.core.PriorityThreadFactory$1.run (PriorityThreadFactory.java:47) java.lang.Thread.run (Thread.java:818)
Anybody know how to fix it?
The text was updated successfully, but these errors were encountered: