Hello, I have an app where the front is on Bubble and most of the backend is done with code.
All the connexions between bubble and code are made via custom API routes.
For some reason, since yesterday, the query param I am sending for one of my API GET routes is being encoded twice. (I haven’t changed anything on my app that could affect this). Do you know what this is about ?
here is a screen between the URL encoded when testing with a swagger (first console.log) and the url encoded when testing from bubble (second console.log)
I don’t think Bubble is encoding it twice. I think Bubble does it once and then your code does it a second time. The reason I believe this is that in your screen shot showing just the code that is being tested in Swagger it shows (econdodeURI(JSON.stringify( which comes after the (encodeURI shown the screen shot for the Bubble example. My thought here is that Bubble does the first encodeURI and your code does the second.
BTW, Bubble support likely will not be able to assist on this as you are using custom code and APIs, both of which Bubble support do not lend assistance on.
I’d say a quick test would work, by removing the encode URI from your code and see if that fixes it.