You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is catching at the middleware level, and not in the application. I think its going to be a good idea to catch for all miss parsed json. So will change title
timwaters
changed the title
Server Error if json param is not a number, should catch before validation error API
API calls with badly parsed JSON should be caught gracefully
Jun 13, 2016
{"data":{"type":"gcps","attributes":{"x":notANumber, "y":2,"lat":33.3,"lon":44.4,"map_id":2}}}
F, [2016-06-10T15:52:36.655067 #25856] FATAL -- :
ActionDispatch::ParamsParser::ParseError
The text was updated successfully, but these errors were encountered: