watson-ruby icon indicating copy to clipboard operation
watson-ruby copied to clipboard

`get_issues': undefined method `code' for nil:NilClass (NoMethodError)

Open victorhaggqvist opened this issue 11 years ago • 2 comments

/home/victor/.rvm/gems/ruby-2.1.0/gems/watson-ruby-1.6.3/lib/watson/github.rb:328:in `get_issues': undefined method `code' for nil:NilClass (NoMethodError)
    from /home/victor/.rvm/gems/ruby-2.1.0/gems/watson-ruby-1.6.3/lib/watson/config.rb:206:in `run'
    from /home/victor/.rvm/gems/ruby-2.1.0/gems/watson-ruby-1.6.3/lib/watson/command.rb:172:in `execute'
    from /home/victor/.rvm/gems/ruby-2.1.0/gems/watson-ruby-1.6.3/bin/watson:11:in `<top (required)>'
    from /home/victor/.rvm/gems/ruby-2.1.0/bin/watson:23:in `load'
    from /home/victor/.rvm/gems/ruby-2.1.0/bin/watson:23:in `<main>'

victorhaggqvist avatar Feb 12 '14 21:02 victorhaggqvist

Looks like the HTTP call didn't return a proper response for some reason. Can you reproduce this problem? This isn't related to fixing this problem, I am just curious what the cause is.

I need to do actual exception handling around HTTP calls (among other things...) to prevent the whole app crashing on these types of things. Expect to see a fix for this soon.

nhmood avatar Feb 13 '14 23:02 nhmood

I have not been able to reproduce this, but I'm pretty sure it accured when I lost wifi connection in the middle of a github sync, which then obtiously timedout because of that.

victorhaggqvist avatar Feb 18 '14 21:02 victorhaggqvist