[Android] Fetch - FATAL EXCEPTION: OkHttp Dispatcher
See original GitHub issueI haven’t figured out a way to reproduce this. But this happens once in a while using fetch(). I’m trying to find a way to reproduce. Will update the issue then. This is the trace I’m getting. Does this ring a bell for anyone?
E/AndroidRuntime: FATAL EXCEPTION: OkHttp Dispatcher
Process: com.company.app, PID: 4508
java.lang.IllegalStateException: closed
at okio.RealBufferedSink.write(RealBufferedSink.java:39)
at okio.ForwardingSink.write(ForwardingSink.java:35)
at com.facebook.react.modules.network.ProgressRequestBody$1.write(ProgressRequestBody.java:58)
at okio.RealBufferedSink.flush(RealBufferedSink.java:216)
at com.facebook.react.modules.network.ProgressRequestBody.writeTo(ProgressRequestBody.java:48)
at okhttp3.internal.http.CallServerInterceptor.intercept(CallServerInterceptor.java:47)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92)
at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.java:45)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:67)
at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.java:109)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:67)
at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.java:93)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92)
at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.java:124)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:67)
at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:170)
at okhttp3.RealCall.access$100(RealCall.java:33)
at okhttp3.RealCall$AsyncCall.execute(RealCall.java:120)
at okhttp3.internal.NamedRunnable.run(NamedRunnable.java:32)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
at java.lang.Thread.run(Thread.java:818)
Additional Information
- React Native version:
0.37
- Platform: Android
- Operating System: MacOs
Issue Analytics
- State:
- Created 7 years ago
- Reactions:5
- Comments:11 (2 by maintainers)
Top Results From Across the Web
FATAL EXCEPTION: OkHttp Dispatcher - java - Stack Overflow
This is caused by using different versions of OkHttp. Ensure all your dependencies from com.squareup.okhttp3 are using the same version.
Read more >AndroidRuntime: FATAL EXCEPTION: OkHttp Dispatcher ...
I had this issue while doing a fetch() call using Authorisation headers. The dependencies listed in this issue are working for Android 10,...
Read more >FATAL EXCEPTION: OkHttp Dispatcher (Example) - Treehouse
Hi! I've got this issue with FATAL EXCEPTION: OkHttp Dispatcher and null object reference ... Everything was fine until constructor ...
Read more >Dispatcher - OkHttp
Square's meticulous HTTP client for the JVM, Android, and GraalVM. ... Each dispatcher uses an ExecutorService to run calls internally.
Read more >Retrofit + okHttp使用中遇到的FATAL EXCEPTION - Steemit
Retrofit + okHttp使用中遇到的FATAL EXCEPTION: OkHttp Dispatcher问题 ... 开始因为下面还有OutOfMemoryError 的错,怀疑是视频有问题检查,视频文件正常大小有110M,虽然 ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Same issue here… Do you guys have any news on this ?
I can reproduce it: