request_handler icon indicating copy to clipboard operation
request_handler copied to clipboard

Mishandling error when the page parameter is not a hash

Open camilo220 opened this issue 5 years ago • 0 comments

If you set the request handler configuration to config.raise_jsonapi_errors = true and you send the page parameter with anything other than a hash a TypeError: no implicit conversion of Symbol into Integer errors raise instead of the proper Error because the format of the message is the incorrect one:

https://github.com/runtastic/request_handler/blob/master/lib/request_handler/page_parser.rb#L14 https://github.com/runtastic/request_handler/blob/master/lib/request_handler/error.rb#L22

camilo220 avatar Aug 06 '20 09:08 camilo220