Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

OmniAuth Google OpenID WEBrick::HTTPStatus::RequestURITooLarge

I am using OmniAuth to allow users to log in with their Google OpenID accounts. When I try to log in in development mode with WEBrick, I get a WEBrick::HTTPStatus::RequestURITooLarge error. When I deploy it to my rails host, it works fine. Is there a different web server I should use instead of WEBrick?

like image 984
SZH Avatar asked Feb 07 '11 21:02

SZH


2 Answers

Strange, I wonder what the URI length limit is for WEBrick. You could try thin http://code.macournoyer.com/thin/. I use this locally for development sometimes and it seems to work great.

like image 66
raidfive Avatar answered Nov 09 '22 22:11

raidfive


As mentioned in railscast 236 for OmniAuth, WEBrick has trouble with long urls given by OpenID. The solution given that worked for me was to add Mongrel to your gemfile.

gem 'mongrel', '1.2.0.pre2'

like image 31
John Avatar answered Nov 09 '22 21:11

John