ruby on rails - Filter chain halted as force SSL rendered or redirected -


so app in production has totally crashed message:

filter chain halted #<proc:0x007f766547ea18@/app/vendor/bundle/ruby/2.1.0/gems/actionpack-4.1.1/lib/action_controller/metal/force_ssl.rb:65> rendered or redirected  

i've done research online , far seems happen in local dev mode when port lost. i'm not sure why happening in heroku app... context code has not changed, , working fine of 30 minutes ago. i'm using cloudflare, checked bare your-app-name.herokuapp.com broken same error.

any appreciated!

i got same error on development environment in rails 4.0 (because of controller force_ssl on it).

i solved using thin web server ssl support, so:

  1. add thin gem gemfile on development group:
    group :development       gem 'thin'     end 
  1. run bundle install on termnal:

    bundle install

  2. start thin ssl support on terminal:

    bundle exec thin start --ssl

  3. access page via https on web browser:

    the protocol need https @ beginning, otherwise can empty response. (err_empty_response)

    https://localhost:3000/

    if connection refused (err_connection_refused) you'll need define loopback ip address on server params:

    bundle exec thin start --ssl -a 127.0.0.1

  4. you'll privacy error, jus click on advanced , on go localhost (not safe)

sorry image in pt-br: enter image description here

  1. it's done! you'll self-signed https connection on localhost in development mode ;)

Popular posts from this blog

c# - ODP.NET Oracle.ManagedDataAccess causes ORA-12537 network session end of file -

matlab - Compression and Decompression of ECG Signal using HUFFMAN ALGORITHM -

utf 8 - split utf-8 string into bytes in python -