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

Fix typo in emma.rb #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

RobertLowe
Copy link

sigh

@jayzes
Copy link

jayzes commented May 7, 2016

Would be awesome to get this merged - it just bit me with a cryptic error that took a bit to diagnose:

TypeError: #<Emma::Client:0x007fa55d159640 @account_id="xxxxxx", @public_key="xxxxx", @private_key="xxxxx", @debug=nil, @default_params={:basic_auth=>{:username=>"xxxxx", :password=>"xxxxxx"}}> is not a symbol nor a string

Failing that, for anyone running across this issue, using a block like this instead of the recommended Emma::Setup one works just fine:

em = Emma::Client.new(account_id: ENV['EMMA_ACCOUNT_ID'],
                             public_key: ENV['EMMA_PUBLIC_KEY'],
                             private_key: ENV['EMMA_PRIVATE_KEY'])

@RobertLowe
Copy link
Author

3 years, finally a comment, the system works! 😜

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

Successfully merging this pull request may close these issues.

2 participants