I see the following error in Terminal when attempting to run a Ruby on Rails app.
HTTP parse error, malformed request (): #
In my case it was silly mistake I started server on http and my url was pointing to https. I hope it would save someone's time ;)