HTTP parse error, malformed request - Ruby on Rails

后端 未结 5 1719
长情又很酷
长情又很酷 2021-02-19 02:31

I see the following error in Terminal when attempting to run a Ruby on Rails app.

HTTP parse error, malformed request (): #

        
5条回答
  •  无人及你
    2021-02-19 02:57

    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.

提交回复
热议问题