Coder Social home page Coder Social logo

Comments (7)

arasrezaei avatar arasrezaei commented on May 16, 2024 1

Have the same problem!
this string "LBlmgMC4tbGCiMsmhMC9sZ%252BNhcsmgICysfXii8smgMC96c%252FGi8smhMC5lf2OissmgMC44fizgssmJQISAAA%253" gets decoded and gives me bad request from server!

from http.

arasrezaei avatar arasrezaei commented on May 16, 2024

does any one know how to fix this?

from http.

SpenceDiNicolantonio avatar SpenceDiNicolantonio commented on May 16, 2024

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.

mcasami-frit avatar mcasami-frit commented on May 16, 2024

Good morning, I had problems with this topic. Finally use JS's own encodeURI (). It seems to work.

from http.

dodomui avatar dodomui commented on May 16, 2024

@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.

jabi11 avatar jabi11 commented on May 16, 2024

same here

from http.

jesperbjerke avatar jesperbjerke commented on May 16, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.