themekit icon indicating copy to clipboard operation
themekit copied to clipboard

Persistent unexpected error: DNS problem while connecting to Shopify, this indicates a problem with your internet connection

Open cupOJoseph opened this issue 4 years ago • 8 comments

Sorry to be reopening this. But is this a intermitent problem?

I'm getting the same error but while trying to generate a new theme with

To Reproduce

theme new -p=mypassword -store=mystore -name=themename

Expected behavior

create the new theme

Environment MacOS Catalina 10.15.5 ThemeKit 1.0.3 darwin/amd64

Originally posted by @gui-gui in https://github.com/Shopify/themekit/issues/645#issuecomment-640970719

cupOJoseph avatar Nov 20 '20 01:11 cupOJoseph

Have tried this on a few different networks, including one public server and I continue to get the same error. The last time this issue was opened, it was blamed on cloudflare outages, but everything is currently normal on shopify status Screen Shot 2020-11-19 at 8 25 45 PM

cupOJoseph avatar Nov 20 '20 01:11 cupOJoseph

Is this still a problem now? There is not much we can do about DNS issues.

tanema avatar Nov 20 '20 15:11 tanema

I was able to connect, I think I was using an incorrect password or possibly using the flags wrong. But it definitely wasn't a DNS issue which was frustrating because thats the only error message I was seeing. We can close this I guess, but it might be worth checking out the error handling messages a second. Thank you for the tool and work.

cupOJoseph avatar Nov 21 '20 22:11 cupOJoseph

There were definitely DNS issues on that day for a short period, just for the record. As it states on the Shopify Status dashboard, not all issues are reported if they only affect a small percentage of stores.

braveagencysam avatar Nov 23 '20 11:11 braveagencysam

I'm not sure if this could be the cause, but there's an open Go issue DNS lookup sometimes fails with "no such host" when there are too many open files.

andyw8 avatar Nov 23 '20 12:11 andyw8

@andyw8 that shouldn't make the command intermittent, it would cause it to fail consistently. There were issues in the past with OSX having a very low file descriptor limit, however this was taken care of here https://github.com/Shopify/themekit/blob/master/cmd/theme/setup_darwin.go#L16-L22

tanema avatar Nov 23 '20 14:11 tanema

To Reproduce

theme new -p=mypassword -store=mystore -name=themename

I solved this by using --store and --name, notice the arguments require 2 dashes -- before each option. Single dash like -p only works for shorthands arguments. You can refer to theme get --help to see all the arguments for get.

It would be better if themekit returned an error with the invalid argument instead of showing a connection error.

lauracarballo avatar Apr 07 '21 07:04 lauracarballo

To Reproduce

theme new -p=mypassword -store=mystore -name=themename

I solved this by using --store and --name, notice the arguments require 2 dashes -- before each option. Single dash like -p only works for shorthands arguments. You can refer to theme get --help to see all the arguments for get.

It would be better if themekit returned an error with the invalid argument instead of showing a connection error.

Thank you - this solved it for me. But strangely for my machine I had to use --password --store but -theme

themacmarketer avatar Jun 05 '21 07:06 themacmarketer