Skip to content

Fatal native error: ReactNativeBlobUtil request error: Value for <key> cannot be cast from ReadableNativeMap to Stringnull #472

Closed

Description

@aaroncornelissen

version: 0.24.9
react-native version: 0.83.4

We had some production issue where our app had a native crash when trying to open a PDF file with the fetch function. In the end the reason was that an request header was transformed to an object instead of the string that the module expects. This is an issue at our side.

I hope that you can add some error handling in the module so that we can catch the error in the JS bundle when something goes wrong here. On iOS we could not see the error it just crashes. On android we saw the error and we traced it.

Activity

  1. RonRadtke commented on Nov 9, 2026

    @RonRadtke
    Owner

    Fixed in 1.1.1: a header value that is not a string rejects with EINVAL before anything reaches native, so you can catch it in JS instead of the app crashing. In 0.25.3 (npm install react-native-blob-util@support-0.25) an object or array value rejects with EINVAL, and a number or boolean is sent as its text.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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