Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Getting error "exceeded available parameter key space"?

In my rails application, after form post, getting error exceeded available parameter key space. there are too many form fields inside form. Is that reason for error? Any views?

like image 789
Sandip Ransing Avatar asked Sep 03 '12 07:09

Sandip Ransing


1 Answers

If you really need it badly try increasing the key_space_limit

Rack::Utils.key_space_limit = 262144 

But this can be dangerous as per this "A higher exposure to POST parsing DOS attacks."

Check this

https://github.com/rack/rack/issues/318

Rails / javascript: "too many parameter keys" - what's a good way to normalize form data?

http://myrailsway.blogspot.in/2012/04/rangeerror-exceeded-available-parameter.html

like image 54
Pritesh Jain Avatar answered Nov 17 '22 04:11

Pritesh Jain