Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

username key invalid #53

Closed
softwaregravy opened this issue May 9, 2013 · 2 comments
Closed

username key invalid #53

softwaregravy opened this issue May 9, 2013 · 2 comments

Comments

@softwaregravy
Copy link
Contributor

Getting the error The following keys are invalid: :username
when initializing

Heroku::API.new(:username => ENV['HEROKU_USER'], :password => ENV['HEROKU_PASSWORD']) 
The following keys are invalid: :username
The following keys are invalid: :username
@softwaregravy
Copy link
Contributor Author

Reading through: https://github.com/heroku/heroku.rb/blob/master/lib/heroku/api.rb

doing this manually, this line works: @api_key = self.post_login(options[:username], options[:password]).body["api_key"]

At this point, I think you should be stripping the username and password from the options.

@geemus
Copy link
Contributor

geemus commented May 9, 2013

Fixed by #55. Thanks!

@geemus geemus closed this as completed May 9, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants