Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NameError #7

Open
timscott opened this issue Apr 7, 2013 · 2 comments
Open

NameError #7

timscott opened this issue Apr 7, 2013 · 2 comments

Comments

@timscott
Copy link

timscott commented Apr 7, 2013

When I enqueue a job I get this error:

NameError (uninitialized constant Resque::Plugins::HerokuAutoscaler::Heroku)

I don't know why I would need it, but I added to my job class:

require 'heroku-api'

Then I get:

NameError (uninitialized constant Heroku::Client)

Huh? So I add:

require 'heroku/client'

Then I get:

NoMethodError (undefined method []' for nil:NilClass)`

For each of these errors my stack trace stops at the initial call to #enqueue so that's where I gave up.

I think I followed the readme instructions exactly. Thoughts?

@Swati24
Copy link

Swati24 commented Apr 29, 2013

Iam facing the same issue. As specified in Readme file this gem uses heroku-api to connect to heroku but in logs it uses heroku-client which is deprecated. Moreover i am getting the error:

NoMethodError: undefined method `heroku_api_key' for Resque::Plugins::HerokuAutoscaler::Config:Module

Please help us resolve this issue.

@timscott
Copy link
Author

timscott commented Jun 8, 2013

I seem to have solved this problem thusly:

gem 'resque-heroku-autoscaler', git: 'https://github.com/ajmurmann/resque-heroku-autoscaler.git'

The published gem (on rubygems.org at least) is an old version, although it has the same version number as what's on gitbhub presently.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants