Caio Tarifa
Caio Tarifa

Reputation: 6043

Rails 3.2.1 - cannot parse Cookie header: undefined method `size' for nil:NilClass

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?

Upvotes: 0

Views: 2474

Answers (4)

user132447
user132447

Reputation: 1701

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

Upvotes: 1

Peter H. Boling
Peter H. Boling

Reputation: 583

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.

Upvotes: 0

sporkd
sporkd

Reputation: 300

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'

Upvotes: 6

Wilhelm
Wilhelm

Reputation: 820

Try clearing your cookies: http://www.aboutcookies.org/Default.aspx?page=2

Upvotes: 2

Related Questions