Can't load data via RestClient? #3

Closed
igrigorik opened this Issue Mar 20, 2010 · 12 comments

Comments

Projects
None yet
5 participants
@igrigorik
1 igrigorik ~> kilt-app --check-settings
/opt/local/lib/ruby/gems/1.8/gems/kilt-0.3.0/lib/kilt.rb:39:in `fetch_activities': undefined method `body' for # (NoMethodError)
    from /opt/local/lib/ruby/gems/1.8/gems/kilt-0.3.0/lib/kilt.rb:28:in `initialize'
    from /opt/local/lib/ruby/gems/1.8/gems/kilt-0.3.0/lib/kilt.rb:11:in `new'
    from /opt/local/lib/ruby/gems/1.8/gems/kilt-0.3.0/lib/kilt.rb:11:in `init'
    from /opt/local/lib/ruby/gems/1.8/gems/kilt-0.3.0/bin/kilt-app:9
    from /opt/local/bin/kilt-app:19:in `load'
    from /opt/local/bin/kilt-app:19
@dcrec1

This comment has been minimized.

Show comment
Hide comment
@dcrec1

dcrec1 Mar 22, 2010

Owner

Hi Ilya,

had you execute kilt-install before kilt-app?

Btw, --check-settings option is not available yet.

Owner

dcrec1 commented Mar 22, 2010

Hi Ilya,

had you execute kilt-install before kilt-app?

Btw, --check-settings option is not available yet.

@igrigorik

This comment has been minimized.

Show comment
Hide comment
@igrigorik

igrigorik Mar 22, 2010

Yep, when I run kilt-app, it sits there for ~20-30 seconds and then throws that exception.

Yep, when I run kilt-app, it sits there for ~20-30 seconds and then throws that exception.

@dcrec1

This comment has been minimized.

Show comment
Hide comment
@dcrec1

dcrec1 Mar 22, 2010

Owner

Hi, which version of rest-client do you have?

Im currently running Kilt with 1.4.2.

Can you also execute the following code with your token please?:

require 'rest_client'
RestClient.get("http://www.pivotaltracker.com/services/v3/activities?limit=10", 'X-TrackerToken' => TOKEN).class

Owner

dcrec1 commented Mar 22, 2010

Hi, which version of rest-client do you have?

Im currently running Kilt with 1.4.2.

Can you also execute the following code with your token please?:

require 'rest_client'
RestClient.get("http://www.pivotaltracker.com/services/v3/activities?limit=10", 'X-TrackerToken' => TOKEN).class

@igrigorik

This comment has been minimized.

Show comment
Hide comment
@igrigorik

igrigorik Mar 22, 2010

Aha, an update seems to have done the trick -- haven't seen any notifications yet, but at least its not throwing an error. You might want to add a version dependency to the gemspec.

Aha, an update seems to have done the trick -- haven't seen any notifications yet, but at least its not throwing an error. You might want to add a version dependency to the gemspec.

@dcrec1

This comment has been minimized.

Show comment
Hide comment
@dcrec1

dcrec1 Mar 23, 2010

Owner

Yes, I'll do that, thanks for the feedback :)

Owner

dcrec1 commented Mar 23, 2010

Yes, I'll do that, thanks for the feedback :)

@bullrico

This comment has been minimized.

Show comment
Hide comment
@bullrico

bullrico Apr 2, 2010

I just installed kilt and I get the same error after kilt-app:

/Users/bobby/.rvm/gems/ruby-1.8.7-p249/gems/kilt-0.3.2/lib/kilt.rb:39:in fetch_activities': undefined methodbody' for #RestClient::Response:0x139ce88 (NoMethodError)
from /Users/bobby/.rvm/gems/ruby-1.8.7-p249/gems/kilt-0.3.2/lib/kilt.rb:28:in initialize' from /Users/bobby/.rvm/gems/ruby-1.8.7-p249/gems/kilt-0.3.2/lib/kilt.rb:11:innew'
from /Users/bobby/.rvm/gems/ruby-1.8.7-p249/gems/kilt-0.3.2/lib/kilt.rb:11:in init' from /Users/bobby/.rvm/gems/ruby-1.8.7-p249/gems/kilt-0.3.2/bin/kilt-app:10 from /Users/bobby/.rvm/gems/ruby-1.8.7-p249/gems/kilt-0.3.2/bin/kilt-app:7:infork'
from /Users/bobby/.rvm/gems/ruby-1.8.7-p249/gems/kilt-0.3.2/bin/kilt-app:7
from /Users/bobby/.rvm/gems/ruby-1.8.7-p249/bin/kilt-app:19:in `load'
from /Users/bobby/.rvm/gems/ruby-1.8.7-p249/bin/kilt-app:19

bullrico commented Apr 2, 2010

I just installed kilt and I get the same error after kilt-app:

/Users/bobby/.rvm/gems/ruby-1.8.7-p249/gems/kilt-0.3.2/lib/kilt.rb:39:in fetch_activities': undefined methodbody' for #RestClient::Response:0x139ce88 (NoMethodError)
from /Users/bobby/.rvm/gems/ruby-1.8.7-p249/gems/kilt-0.3.2/lib/kilt.rb:28:in initialize' from /Users/bobby/.rvm/gems/ruby-1.8.7-p249/gems/kilt-0.3.2/lib/kilt.rb:11:innew'
from /Users/bobby/.rvm/gems/ruby-1.8.7-p249/gems/kilt-0.3.2/lib/kilt.rb:11:in init' from /Users/bobby/.rvm/gems/ruby-1.8.7-p249/gems/kilt-0.3.2/bin/kilt-app:10 from /Users/bobby/.rvm/gems/ruby-1.8.7-p249/gems/kilt-0.3.2/bin/kilt-app:7:infork'
from /Users/bobby/.rvm/gems/ruby-1.8.7-p249/gems/kilt-0.3.2/bin/kilt-app:7
from /Users/bobby/.rvm/gems/ruby-1.8.7-p249/bin/kilt-app:19:in `load'
from /Users/bobby/.rvm/gems/ruby-1.8.7-p249/bin/kilt-app:19

@dcrec1

This comment has been minimized.

Show comment
Hide comment
@dcrec1

dcrec1 Apr 5, 2010

Owner

Hi Bobby, plz update the gem RestClient.

I'll specify in the dependencies the needed version to run Kilt without problems.

Owner

dcrec1 commented Apr 5, 2010

Hi Bobby, plz update the gem RestClient.

I'll specify in the dependencies the needed version to run Kilt without problems.

@bullrico

This comment has been minimized.

Show comment
Hide comment
@bullrico

bullrico Apr 5, 2010

That solved it, thanks!

bullrico commented Apr 5, 2010

That solved it, thanks!

@ashokraju

This comment has been minimized.

Show comment
Hide comment
@ashokraju

ashokraju Sep 14, 2010

I'm having this problem even after an update. This is what I get:

C:/Ruby192/lib/ruby/gems/1.9.1/gems/ruby-snarl-0.0.8/lib/snarl.rb:15:in `<module
:SnarlAPI>': uninitialized constant DL::Importable (NameError)
    from C:/Ruby192/lib/ruby/gems/1.9.1/gems/ruby-snarl-0.0.8/lib/snarl.rb:1
 4:in `<class:Snarl>'
    from C:/Ruby192/lib/ruby/gems/1.9.1/gems/ruby-snarl-0.0.8/lib/snarl.rb:7
:in `<top (required)>'
    from <internal:lib/rubygems/custom_require>:33:in `require'
    from <internal:lib/rubygems/custom_require>:33:in `rescue in require'
    from <internal:lib/rubygems/custom_require>:29:in `require'
    from C:/Ruby192/lib/ruby/gems/1.9.1/gems/kilt-0.5.1/lib/kilt.rb:4:in `<t
op (required)>'
    from <internal:lib/rubygems/custom_require>:29:in `require'
    from <internal:lib/rubygems/custom_require>:29:in `require'
    from C:/Ruby192/lib/ruby/gems/1.9.1/gems/kilt-0.5.1/bin/kilt-app:5:in `<
top (required)>'
    from C:/Ruby192/bin/kilt-app:19:in `load'
    from C:/Ruby192/bin/kilt-app:19:in `<main>'

I tried updating the RestClient with 'gem update' but it still doesn't work. Is there a problem with the way I'm trying to update?

I'm having this problem even after an update. This is what I get:

C:/Ruby192/lib/ruby/gems/1.9.1/gems/ruby-snarl-0.0.8/lib/snarl.rb:15:in `<module
:SnarlAPI>': uninitialized constant DL::Importable (NameError)
    from C:/Ruby192/lib/ruby/gems/1.9.1/gems/ruby-snarl-0.0.8/lib/snarl.rb:1
 4:in `<class:Snarl>'
    from C:/Ruby192/lib/ruby/gems/1.9.1/gems/ruby-snarl-0.0.8/lib/snarl.rb:7
:in `<top (required)>'
    from <internal:lib/rubygems/custom_require>:33:in `require'
    from <internal:lib/rubygems/custom_require>:33:in `rescue in require'
    from <internal:lib/rubygems/custom_require>:29:in `require'
    from C:/Ruby192/lib/ruby/gems/1.9.1/gems/kilt-0.5.1/lib/kilt.rb:4:in `<t
op (required)>'
    from <internal:lib/rubygems/custom_require>:29:in `require'
    from <internal:lib/rubygems/custom_require>:29:in `require'
    from C:/Ruby192/lib/ruby/gems/1.9.1/gems/kilt-0.5.1/bin/kilt-app:5:in `<
top (required)>'
    from C:/Ruby192/bin/kilt-app:19:in `load'
    from C:/Ruby192/bin/kilt-app:19:in `<main>'

I tried updating the RestClient with 'gem update' but it still doesn't work. Is there a problem with the way I'm trying to update?

@dcrec1

This comment has been minimized.

Show comment
Hide comment
@dcrec1

dcrec1 Sep 14, 2010

Owner

I thinks its a problem with the ruby-snarl gem. I didn't make the Windows port, so I'll ask the person what version of ruby-snarl where he using, can be a conflict with older/newer versions.

Owner

dcrec1 commented Sep 14, 2010

I thinks its a problem with the ruby-snarl gem. I didn't make the Windows port, so I'll ask the person what version of ruby-snarl where he using, can be a conflict with older/newer versions.

@ashokraju

This comment has been minimized.

Show comment
Hide comment
@ashokraju

ashokraju Sep 16, 2010

Hmm I see. Cool, thanks for the response. Let me know if you've found a solution.

Appreciate the help!

Hmm I see. Cool, thanks for the response. Let me know if you've found a solution.

Appreciate the help!

@schaable

This comment has been minimized.

Show comment
Hide comment
@schaable

schaable Jun 6, 2012

Someone has found a fix for this issue?

schaable commented Jun 6, 2012

Someone has found a fix for this issue?

@igrigorik igrigorik closed this Oct 8, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment