api icon indicating copy to clipboard operation
api copied to clipboard

JSON POST body error when JSON contains "="

Open gottlike opened this issue 1 year ago • 0 comments

I'm POSTing a JSON array of objects that can have all sorts of characters. I encountered the following error:

<Rack::QueryParser::InvalidParameterError: invalid %-encoding ({...}>

The error message stops at the point, where the property's value has === as a string. I'm assuming Rack is expecting a URL-encoded form string and it breaks somehow.

I'm using use Hanami::Middleware::BodyParser, :json, as recommended.

gottlike avatar Nov 15 '23 19:11 gottlike