You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Fatal native error: ReactNativeBlobUtil request error: Value for <key> cannot be cast from ReadableNativeMap to Stringnull #472
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.
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.
Activity
fix(fetch): a header value native cannot read rejects instead of cras…
RonRadtke commentedon Nov 9, 2026
Fixed in 1.1.1: a header value that is not a string rejects with
EINVALbefore 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 withEINVAL, and a number or boolean is sent as its text.