Reputation: 635
Please help to solve Error: unsupported URL (IOS).When i adding data to url from reducer it not working but normally when adding url to fetch data without reducer data it error.(Same code works in Android )
Upvotes: 3
Views: 7073
Reputation: 171
There may be some value in your query string with special characters (like spaces). Try encoding the api url using encodeURI() in javascript. Or, if you are passing another url in your api query params then you may have to encode symbols which are reserved for urls (for eg: ?, :, / etc.) use encodeURIComponent() for this case. This resolved the same issue for me.
Upvotes: 8
Reputation: 635
I solved with remove spaces i dont know where is space but when i get link from reducer and then replace space to empty and all solved
Upvotes: 3