I see the following error in Terminal when attempting to run a Ruby on Rails app.
HTTP parse error, malformed request (): #
Access the app using a different browser, or if you are in Chrome access it in Incognito mode. After this the error did not show in any browser again. Remember to remove the config.force_ssl
or set it to false
in the development.rb
file first.
Encountered this today after adding and then removing the config.force_ssl = true
config in our Rails 6 app's development.rb
file. Tried to access the app in localhost, in a Chrome browser, and the same error showed. Restared rails server several times, to no avail.
The accessing it in different browser, where the force ssl version of the app client was never opened, worked.