###前提・実現したいこと
環境はrubyの2.3.1、rails 4.2.6, her 0.8.1, pry-rails 0.3.4です。
development環境のrails consoleからherを使って、別アプリのAPIを叩くとエラーが発生しました。
過去は問題なく動作してたものが、rubyのversionをあげたことか、gemのversionをあげたことが原因なのかわかりませんが、動作しなくなりました。
###発生している問題・エラーメッセージ
NoMethodError: undefined method `strip' for nil:NilClass from /Users/yoshihiro/.rbenv/versions/2.3.1/lib/ruby/2.3.0/net/http/header.rb:18:in `block in initialize_http_header'
###該当のソースコード
ruby
1class Order 2 include Her::Model 3end
console
12.3.1 pry(main)> Order.find(1) 2NoMethodError: undefined method `strip' for nil:NilClass 3from /Users/yoshihiro/.rbenv/versions/2.3.1/lib/ruby/2.3.0/net/http/header.rb:18:in `block in initialize_http_header'
###試したこと
rbenvのuninstall
rubyのversionの変更
2.2.5まで試しました。
###補足情報(言語/FW/ツール等のバージョンなど)
より詳細な情報
あなたの回答
tips
プレビュー