Ruby on Rails server crashes during a HTTPS POST request

后端 未结 1 1962
遥遥无期
遥遥无期 2021-01-28 02:13

I\'m trying to communicate with urban airship API using a ROR web application.

In my controller I\'ve the following code:

require \'net/http\'
requir         


        
相关标签:
1条回答
  • 2021-01-28 02:33

    Solved!

    There is a bug related to the 'pg' gem and the use of HTTPS connections.

    The fix is trivial: just move the gem 'pg' line of your Gemfile to the bottom!

    0 讨论(0)
提交回复
热议问题