React-native-fetch-blob: Unsupported URL

Created on 10 May 2017  ·  3Comments  ·  Source: wkh237/react-native-fetch-blob

At first thanks for the great work.

I'm using this package as a replacement for JS Fetch. I have calls to different URLs. all works fine except one :

http://somewebsite.com/app/user?field_conditions[field_last_name]="%Sch%"&options[field_conditions_op][field_last_name]=LIKE

When I try fetching it via GET method, it throws an error : "unsupported url"

needs feedback

Most helpful comment

Yes, pelase use encodeURI(uri) to escape. it works to me.

All 3 comments

Try escape special characters like " or [

Yes, pelase use encodeURI(uri) to escape. it works to me.

encodeURI

This worked!

Was this page helpful?
0 / 5 - 0 ratings