Skip to content

[Android] Fetch - FATAL EXCEPTION: OkHttp Dispatcher #11016

@sreejithr

Description

@sreejithr

I 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions