Shopify Cli Login Issue "Failed to open TCP connection"

Shopify Cli Login Issue "Failed to open TCP connection"

BaiJing
Visitor
1 0 0

Hi all,

I'm having an issue logging into my store

There were no mistakes before, now there are sudden mistakes
I logged into the browser after the pop-up page, can not connect to the store properly
My Shopify CLI version is 2.36.0

 

√ Initiating authentication
X An unexpected error occurred.
        To submit an issue include the stack trace.

C:/Ruby30-x64/lib/ruby/3.0.0/net/http.rb:987:in `initialize': Failed to open TCP connection to accounts.shopify.com:443 (A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. - connect(2) for "accounts.shopify.com" port 443) (Errno::ETIMEDOUT)
        from C:/Ruby30-x64/lib/ruby/3.0.0/net/http.rb:987:in `open'
        from C:/Ruby30-x64/lib/ruby/3.0.0/net/http.rb:987:in `block in connect'
        from C:/Ruby30-x64/lib/ruby/3.0.0/timeout.rb:97:in `block in timeout'
        from C:/Ruby30-x64/lib/ruby/3.0.0/timeout.rb:107:in `timeout'
        from C:/Ruby30-x64/lib/ruby/3.0.0/net/http.rb:985:in `connect'
        from C:/Ruby30-x64/lib/ruby/3.0.0/net/http.rb:970:in `do_start'
        from C:/Ruby30-x64/lib/ruby/3.0.0/net/http.rb:959:in `start'
        from C:/Ruby30-x64/lib/ruby/3.0.0/net/http.rb:1512:in `request'
        from C:/Users/WIN11/.local/share/gem/ruby/3.0.0/gems/shopify-cli-2.36.0/lib/shopify_cli/identity_auth.rb:275:in `post_request'
        from C:/Users/WIN11/.local/share/gem/ruby/3.0.0/gems/shopify-cli-2.36.0/lib/shopify_cli/identity_auth.rb:264:in `post_token_request'
        from C:/Users/WIN11/.local/share/gem/ruby/3.0.0/gems/shopify-cli-2.36.0/lib/shopify_cli/identity_auth.rb:183:in `request_access_token'
        from C:/Users/WIN11/.local/share/gem/ruby/3.0.0/gems/shopify-cli-2.36.0/lib/shopify_cli/identity_auth.rb:67:in `authenticate'
        from C:/Users/WIN11/.local/share/gem/ruby/3.0.0/gems/shopify-cli-2.36.0/lib/shopify_cli/commands/login.rb:33:in `call'
        from C:/Users/WIN11/.local/share/gem/ruby/3.0.0/gems/shopify-cli-2.36.0/lib/shopify_cli/command.rb:35:in `call'
        from C:/Users/WIN11/.local/share/gem/ruby/3.0.0/gems/shopify-cli-2.36.0/lib/shopify_cli/core/executor.rb:17:in `block (2 levels) in call'
        from C:/Users/WIN11/.local/share/gem/ruby/3.0.0/gems/shopify-cli-2.36.0/vendor/deps/cli-kit/lib/cli/kit/executor.rb:37:in `block (2 levels) in with_logging'
        from C:/Users/WIN11/.local/share/gem/ruby/3.0.0/gems/shopify-cli-2.36.0/vendor/deps/cli-ui/lib/cli/ui/stdout_router.rb:169:in `with_id'
        from C:/Users/WIN11/.local/share/gem/ruby/3.0.0/gems/shopify-cli-2.36.0/vendor/deps/cli-kit/lib/cli/kit/executor.rb:36:in `block in with_logging'
        from C:/Users/WIN11/.local/share/gem/ruby/3.0.0/gems/shopify-cli-2.36.0/vendor/deps/cli-ui/lib/cli/ui.rb:176:in `log_output_to'
        from C:/Users/WIN11/.local/share/gem/ruby/3.0.0/gems/shopify-cli-2.36.0/vendor/deps/cli-kit/lib/cli/kit/executor.rb:35:in `with_logging'
        from C:/Users/WIN11/.local/share/gem/ruby/3.0.0/gems/shopify-cli-2.36.0/lib/shopify_cli/core/executor.rb:16:in `block in call'
        from C:/Users/WIN11/.local/share/gem/ruby/3.0.0/gems/shopify-cli-2.36.0/vendor/deps/cli-kit/lib/cli/kit/executor.rb:45:in `block (2 levels) in with_traps'
        from C:/Users/WIN11/.local/share/gem/ruby/3.0.0/gems/shopify-cli-2.36.0/vendor/deps/cli-kit/lib/cli/kit/executor.rb:51:in `twrap'
        from C:/Users/WIN11/.local/share/gem/ruby/3.0.0/gems/shopify-cli-2.36.0/vendor/deps/cli-kit/lib/cli/kit/executor.rb:44:in `block in with_traps'
        from C:/Users/WIN11/.local/share/gem/ruby/3.0.0/gems/shopify-cli-2.36.0/vendor/deps/cli-kit/lib/cli/kit/executor.rb:51:in `twrap'
        from C:/Users/WIN11/.local/share/gem/ruby/3.0.0/gems/shopify-cli-2.36.0/vendor/deps/cli-kit/lib/cli/kit/executor.rb:43:in `with_traps'
        from C:/Users/WIN11/.local/share/gem/ruby/3.0.0/gems/shopify-cli-2.36.0/lib/shopify_cli/core/executor.rb:15:in `call'
        from C:/Users/WIN11/.local/share/gem/ruby/3.0.0/gems/shopify-cli-2.36.0/lib/shopify_cli/core/entry_point.rb:17:in `block in call'
        from C:/Users/WIN11/.local/share/gem/ruby/3.0.0/gems/shopify-cli-2.36.0/lib/shopify_cli/core/monorail.rb:26:in `log'
        from C:/Users/WIN11/.local/share/gem/ruby/3.0.0/gems/shopify-cli-2.36.0/lib/shopify_cli/core/entry_point.rb:16:in `call'
        from C:/Users/WIN11/.local/share/gem/ruby/3.0.0/gems/shopify-cli-2.36.0/bin/shopify:50:in `block (2 levels) in <top (required)>'
        from C:/Users/WIN11/.local/share/gem/ruby/3.0.0/gems/shopify-cli-2.36.0/vendor/deps/cli-kit/lib/cli/kit/error_handler.rb:75:in `handle_abort'
        from C:/Users/WIN11/.local/share/gem/ruby/3.0.0/gems/shopify-cli-2.36.0/vendor/deps/cli-kit/lib/cli/kit/error_handler.rb:21:in `call'
        from C:/Users/WIN11/.local/share/gem/ruby/3.0.0/gems/shopify-cli-2.36.0/bin/shopify:49:in `block in <top (required)>'
        from C:/Users/WIN11/.local/share/gem/ruby/3.0.0/gems/shopify-cli-2.36.0/bin/shopify:59:in `<top (required)>'
        from C:/Users/WIN11/AppData/Local/Microsoft/WindowsApps/shopify:25:in `load'
        from C:/Users/WIN11/AppData/Local/Microsoft/WindowsApps/shopify:25:in `<main>'
C:/Ruby30-x64/lib/ruby/3.0.0/net/http.rb:987:in `initialize': A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. - connect(2) for "accounts.shopify.com" port 443 (Errno::ETIMEDOUT)
        from C:/Ruby30-x64/lib/ruby/3.0.0/net/http.rb:987:in `open'
        from C:/Ruby30-x64/lib/ruby/3.0.0/net/http.rb:987:in `block in connect'
        from C:/Ruby30-x64/lib/ruby/3.0.0/timeout.rb:97:in `block in timeout'
        from C:/Ruby30-x64/lib/ruby/3.0.0/timeout.rb:107:in `timeout'
        from C:/Ruby30-x64/lib/ruby/3.0.0/net/http.rb:985:in `connect'
        from C:/Ruby30-x64/lib/ruby/3.0.0/net/http.rb:970:in `do_start'
        from C:/Ruby30-x64/lib/ruby/3.0.0/net/http.rb:959:in `start'
        from C:/Ruby30-x64/lib/ruby/3.0.0/net/http.rb:1512:in `request'
        from C:/Users/WIN11/.local/share/gem/ruby/3.0.0/gems/shopify-cli-2.36.0/lib/shopify_cli/identity_auth.rb:275:in `post_request'
        from C:/Users/WIN11/.local/share/gem/ruby/3.0.0/gems/shopify-cli-2.36.0/lib/shopify_cli/identity_auth.rb:264:in `post_token_request'
        from C:/Users/WIN11/.local/share/gem/ruby/3.0.0/gems/shopify-cli-2.36.0/lib/shopify_cli/identity_auth.rb:183:in `request_access_token'
        from C:/Users/WIN11/.local/share/gem/ruby/3.0.0/gems/shopify-cli-2.36.0/lib/shopify_cli/identity_auth.rb:67:in `authenticate'
        from C:/Users/WIN11/.local/share/gem/ruby/3.0.0/gems/shopify-cli-2.36.0/lib/shopify_cli/commands/login.rb:33:in `call'
        from C:/Users/WIN11/.local/share/gem/ruby/3.0.0/gems/shopify-cli-2.36.0/lib/shopify_cli/command.rb:35:in `call'
        from C:/Users/WIN11/.local/share/gem/ruby/3.0.0/gems/shopify-cli-2.36.0/lib/shopify_cli/core/executor.rb:17:in `block (2 levels) in call'
        from C:/Users/WIN11/.local/share/gem/ruby/3.0.0/gems/shopify-cli-2.36.0/vendor/deps/cli-kit/lib/cli/kit/executor.rb:37:in `block (2 levels) in with_logging'
        from C:/Users/WIN11/.local/share/gem/ruby/3.0.0/gems/shopify-cli-2.36.0/vendor/deps/cli-ui/lib/cli/ui/stdout_router.rb:169:in `with_id'
        from C:/Users/WIN11/.local/share/gem/ruby/3.0.0/gems/shopify-cli-2.36.0/vendor/deps/cli-kit/lib/cli/kit/executor.rb:36:in `block in with_logging'
        from C:/Users/WIN11/.local/share/gem/ruby/3.0.0/gems/shopify-cli-2.36.0/vendor/deps/cli-ui/lib/cli/ui.rb:176:in `log_output_to'
        from C:/Users/WIN11/.local/share/gem/ruby/3.0.0/gems/shopify-cli-2.36.0/vendor/deps/cli-kit/lib/cli/kit/executor.rb:35:in `with_logging'
        from C:/Users/WIN11/.local/share/gem/ruby/3.0.0/gems/shopify-cli-2.36.0/lib/shopify_cli/core/executor.rb:16:in `block in call'
        from C:/Users/WIN11/.local/share/gem/ruby/3.0.0/gems/shopify-cli-2.36.0/vendor/deps/cli-kit/lib/cli/kit/executor.rb:45:in `block (2 levels) in with_traps'
        from C:/Users/WIN11/.local/share/gem/ruby/3.0.0/gems/shopify-cli-2.36.0/vendor/deps/cli-kit/lib/cli/kit/executor.rb:51:in `twrap'
        from C:/Users/WIN11/.local/share/gem/ruby/3.0.0/gems/shopify-cli-2.36.0/vendor/deps/cli-kit/lib/cli/kit/executor.rb:44:in `block in with_traps'
        from C:/Users/WIN11/.local/share/gem/ruby/3.0.0/gems/shopify-cli-2.36.0/vendor/deps/cli-kit/lib/cli/kit/executor.rb:51:in `twrap'
        from C:/Users/WIN11/.local/share/gem/ruby/3.0.0/gems/shopify-cli-2.36.0/vendor/deps/cli-kit/lib/cli/kit/executor.rb:43:in `with_traps'
        from C:/Users/WIN11/.local/share/gem/ruby/3.0.0/gems/shopify-cli-2.36.0/lib/shopify_cli/core/executor.rb:15:in `call'
        from C:/Users/WIN11/.local/share/gem/ruby/3.0.0/gems/shopify-cli-2.36.0/lib/shopify_cli/core/entry_point.rb:17:in `block in call'
        from C:/Users/WIN11/.local/share/gem/ruby/3.0.0/gems/shopify-cli-2.36.0/lib/shopify_cli/core/monorail.rb:26:in `log'
        from C:/Users/WIN11/.local/share/gem/ruby/3.0.0/gems/shopify-cli-2.36.0/lib/shopify_cli/core/entry_point.rb:16:in `call'
        from C:/Users/WIN11/.local/share/gem/ruby/3.0.0/gems/shopify-cli-2.36.0/bin/shopify:50:in `block (2 levels) in <top (required)>'
        from C:/Users/WIN11/.local/share/gem/ruby/3.0.0/gems/shopify-cli-2.36.0/vendor/deps/cli-kit/lib/cli/kit/error_handler.rb:75:in `handle_abort'
        from C:/Users/WIN11/.local/share/gem/ruby/3.0.0/gems/shopify-cli-2.36.0/vendor/deps/cli-kit/lib/cli/kit/error_handler.rb:21:in `call'
        from C:/Users/WIN11/.local/share/gem/ruby/3.0.0/gems/shopify-cli-2.36.0/bin/shopify:49:in `block in <top (required)>'
        from C:/Users/WIN11/.local/share/gem/ruby/3.0.0/gems/shopify-cli-2.36.0/bin/shopify:59:in `<top (required)>'
        from C:/Users/WIN11/AppData/Local/Microsoft/WindowsApps/shopify:25:in `load'
        from C:/Users/WIN11/AppData/Local/Microsoft/WindowsApps/shopify:25:in `<main>'
Replies 3 (3)

bradical
Shopify Partner
5 1 2

I know this is old but you ever figure this out? It's looking Shopify is blocking for whatever their reasons are and i'm having the same issue.. started happening more and more and now I can't even get in!

ed_meehan
Shopify Partner
16 1 8

I am having a similar issue, unable to launch local development environment.

cmoriarty83
Shopify Partner
8 2 2

I've been having this issue a bit lately and get this, this morning I turned off my Mac's wifi for roughly 8 seconds, turned it back on and it fired right up.