问题
I've updated the rails gem to version 3.2.1 and I created a dummy test application, but when execute I get this error:
NoMethodError
cannot parse Cookie header: undefined method `size' for nil:NilClass
Anyone know help me?
回答1:
This seems to be an issue with rack. I was able to fix it by pointing my Gemfile to master for the time being.
gem 'rack', git: 'git://github.com/rack/rack.git'
回答2:
Try clearing your cookies: http://www.aboutcookies.org/Default.aspx?page=2
回答3:
For historical purposes, anyone researching this issue should know that this bug has been fixed as of 2012-08-10.
Updating to Rack 1.4.2 or 1.5.0 or newer should fix this issue.
https://github.com/rack/rack/issues/386#issuecomment-7660902
回答4:
Also had this problem. It was caused by a comma in the value of a cookie being sent in the request headers. The cookie with the bad value was set by a different site running on the same domain (different sub-domain). Removing the bad cookie with the comma fixed the problem.
来源:https://stackoverflow.com/questions/9054604/rails-3-2-1-cannot-parse-cookie-header-undefined-method-size-for-nilnilcla