Comments (7)
Have the same problem!
this string "LBlmgMC4tbGCiMsmhMC9sZ%252BNhcsmgICysfXii8smgMC96c%252FGi8smhMC5lf2OissmgMC44fizgssmJQISAAA%253" gets decoded and gives me bad request from server!
from http.
does any one know how to fix this?
from http.
does any one know how to fix this?
@arasrezaei I was unable to find a solution - we ended up restructuring our Firebase storage to avoid it 😒
from http.
Good morning, I had problems with this topic. Finally use JS's own encodeURI (). It seems to work.
from http.
@mcasami-frit encodeURI() doesn't work for me.
@SpenceDiNicolantonio Do you store all the images on root without any subfolder? But it will mess up the structure.
@arasrezaei Me too, having this issue on android.
Any solution for android?
from http.
same here
from http.
Same thing here. Works on iOS but not on Android. I use https://github.com/ljharb/qs stringify
to compile my params into the URL string instead of the params parameter because this plugin does not compile nested params properly.
And as soon as one of the values has to be encoded this breaks on android.
I dug around a bit and it seems as though the android version calls "setParams" no matter if you actually have params or not. And the "shouldEncode" argument to the method is forced to "true". I've tried disabling the encoding from qs entirely and then I get a "URISyntaxException", which is weird, since it should then handle the encoding. Setting the "shouldEncode" argument to "false" causes a "MalformedURLException", even if you provide an encoded URL, this is because the URL concatenation when shouldEncode is false does not add "://" after the protocol.
Encoding the entire string in qs and then removing the call to setParams in the android makes it work..
from http.
Related Issues (20)
- if http is not maintained, then what is the recommended plugin? HOT 2
- Allow fragments to be parsed as JSON in response data
- Could not cast value of type '__NSCFNumber' (0x10881b608) to 'NSString' (0x1f473fc40). HOT 1
- Allow WebDAV HTTP methods
- Sending request on background HOT 2
- Setup custom values in header not work.
- Request to https domain fails with SSLHandshakeException. HOT 5
- cannot overwrite default request headers on ios
- JSONException on device when getting a primitive value, e.g. number
- [feat] support metadata for uploadFile HOT 1
- downloadFile method not working correctly on Android
- Http progress listener has serious performance issue on Android HOT 3
- Cannot get cookies in the response
- iOS and Android handle form-uurlencoded requests differently HOT 2
- How to write interceptor in capacitor http HOT 1
- https url is not hitting with http-community in IONIC React. HOT 1
- Capacitor v4 support? HOT 4
- setCookie: "errorMessage":"Must provide value"
- Capacitor 4 : Http urls not working (only https) HOT 2
- Unable to open asset URL on Android
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from http.