Shopify / shopify_theme

A console tool for interacting with Shopify Theme Assets.
http://shopify.github.io/shopify_theme
MIT License
645 stars 135 forks source link

Error: getaddrinfo: Name or service not known (SocketError) #147

Closed DannyBen closed 9 years ago

DannyBen commented 9 years ago

I have installed this on Ubuntu 14.04, with Ruby 1.9.3p484
Have executed theme configure with the correct keys.

When running theme download I get this error.

/usr/lib/ruby/1.9.1/net/http.rb:763:in `initialize': getaddrinfo: Name or service not known (SocketError)
        from /usr/lib/ruby/1.9.1/net/http.rb:763:in `open'
        from /usr/lib/ruby/1.9.1/net/http.rb:763:in `block in connect'

I have read the part of the README that offers a solution, and tried that, but it did not work.

I did:

But the theme download command still gives an error.

A Google search did not offer any help, other than maybe this page but I guess that if it is indeed the solution, it needs to be implemented in the gem.

csaunders commented 9 years ago

What did you put in for your shops domain?

DannyBen commented 9 years ago

My bad...

The README instructions confused me by saying to run theme configure ..... store_name So I used only the store name (the first part of the domain).

Only after reviewing this line in the code, I realized I needed a full domain. Seems to work now - apologies and thanks (maybe change the docs from store_name to store_domain to eliminate any chance of confusion?)

csaunders commented 9 years ago

https://github.com/Shopify/shopify_theme/commit/c3c6f41f6d76f2ee1ea6f5be5b43dce7c4200444