Skip to content

Class Cast exception #490

Open
Open
@learnyst

Description

@learnyst
  • please provide the version of installed library and RN project.
    React native: 0.60.4
    rnFetchBlob: 0.11.2

  • a sample code snippet/repository is very helpful to spotting the problem.
    We are not able to reproduce crash. Many of app users are facing issue.

rnFetchBlob is crashing with the below exception. We have got this exception in bugsnag

java.lang.ClassCastException okhttp3.internal.http.RealResponseBody cannot be cast to com.RNFetchBlob.Response.RNFetchBlobFileResp
RNFetchBlobReq.java:544 com.RNFetchBlob.RNFetchBlobReq.done
RNFetchBlobReq.java:67 com.RNFetchBlob.RNFetchBlobReq.access$100
RNFetchBlobReq.java:445 com.RNFetchBlob.RNFetchBlobReq$3.onResponse
RealCall.java:174 okhttp3.RealCall$AsyncCall.execute
NamedRunnable.java:32 okhttp3.internal.NamedRunnable.run
ThreadPoolExecutor.java:1113 java.util.concurrent.ThreadPoolExecutor.runWorker
ThreadPoolExecutor.java:588 java.util.concurrent.ThreadPoolExecutor$Worker.run
Thread.java:818 java.lang.Thread.run

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions