themekit
themekit copied to clipboard
Persistent unexpected error: DNS problem while connecting to Shopify, this indicates a problem with your internet connection
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
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
Is this still a problem now? There is not much we can do about DNS issues.
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.
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.
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 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
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.
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 totheme 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