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: uninitialized constant Alexa::Connection::URI #12

Closed
mm580486 opened this issue Mar 30, 2018 · 1 comment
Closed

NameError: uninitialized constant Alexa::Connection::URI #12

mm580486 opened this issue Mar 30, 2018 · 1 comment

Comments

@mm580486
Copy link

i have some problem on alexa gem

i setting my credentials and start to send request but alexa gem return this error


 url_info = client.url_info(url: "http://google.com")
NameError: uninitialized constant Alexa::Connection::URI
	from /Users/mac/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/alexa-0.6.3/lib/alexa/connection.rb:59:in `uri'
	from /Users/mac/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/alexa-0.6.3/lib/alexa/connection.rb:47:in `request'
	from /Users/mac/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/alexa-0.6.3/lib/alexa/connection.rb:26:in `get'
	from /Users/mac/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/alexa-0.6.3/lib/alexa/api/url_info.rb:14:in `fetch'
	from /Users/mac/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/alexa-0.6.3/lib/alexa/client.rb:27:in `url_info'
@pboling
Copy link

pboling commented Apr 3, 2018

The gem doesn't delcare it's dependencies properly. This is a bug in the gem, but there is a workaround, require 'uri' at the top of your file, or in an initializer / boot strapper.

CC @morgoth

@morgoth morgoth closed this as completed in 6096aa6 May 5, 2018
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