swdyh / goodbye_chatwork

Chatwork(chatwork.com) log downloader
MIT License
67 stars 24 forks source link

NoMethodError: undefined method `[]' for nil:NilClass #9

Closed hirokishirai closed 7 years ago

hirokishirai commented 7 years ago

goodbye_chatwork raised NoMethodError: undefined method `[]' for nil:NilClass while trying to get signed in results. at lib/goodbye_chatwork.rb#L52.

Below is full traces.

% goodbye_chatwork -i hoge@fuga.com -p hogefuga
2017-03-16T12:44:20+09:00 login as hoge@fuga.com
2017-03-16T12:44:20+09:00 load initial data...
bundler: failed to load command: goodbye_chatwork (/Users/hirokishirai/projects/goodbye_chatwork/vendor/bundle/ruby/2.3.0/bin/goodbye_chatwork)
NoMethodError: undefined method `[]' for nil:NilClass
  /Users/hirokishirai/projects/goodbye_chatwork/vendor/bundle/ruby/2.3.0/bundler/gems/goodbye_chatwork-cd7f1137f57c/lib/goodbye_chatwork.rb:52:in `init_load'
  /Users/hirokishirai/projects/goodbye_chatwork/vendor/bundle/ruby/2.3.0/bundler/gems/goodbye_chatwork-cd7f1137f57c/lib/goodbye_chatwork.rb:42:in `login'
  /Users/hirokishirai/projects/goodbye_chatwork/vendor/bundle/ruby/2.3.0/bundler/gems/goodbye_chatwork-cd7f1137f57c/bin/goodbye_chatwork:47:in `<top (required)>'
  /Users/hirokishirai/projects/goodbye_chatwork/vendor/bundle/ruby/2.3.0/bin/goodbye_chatwork:23:in `load'
  /Users/hirokishirai/projects/goodbye_chatwork/vendor/bundle/ruby/2.3.0/bin/goodbye_chatwork:23:in `<top (required)>'