2016年3月25日 星期五

Typhoeus doesn't return to response body


result = JSON.parse request.response_body
產生下面錯誤:
 A JSON text must at least contain two octets!

在測試機上可以正常的抓取response body
丟到production就出錯了,typhoeus 的內容資訊 :return_code=>:ssl_cacert_badfile
正常應該是:return_code=>:ok

原因是ssl的問題

解法:
sudo apt-get install libcurl4-openssl-dev
重新啟動nginx


http://stackoverflow.com/questions/17895753/typhoeus-doesnt-return-to-response-body

沒有留言: