Re: Related to shopify app Error refused to connect.

Solved

Related to shopify app Error refused to connect.

areesha
Shopify Partner
4 0 0

I am facing an issue that wasn't occurring before but is now happening. When using the Shopify CLI, I'm getting the error message 'alphabetical-liability-invite-artists.trycloudflare.com refused to connect.' Additionally, in the console, I'm seeing the error 'Error forwarding web request: Error: connect ECONNREFUSED ::1:49643.'

I have checked the port, and it's free. Previously, the issue was due to the port, but now I'm not sure why it's causing a problem. Please, could you kindly assist in resolving this issue as soon as possible? My work is being delayed because of this. Thank you for your cooperation

Accepted Solution (1)
SomeUsernameHe
Shopify Partner
519 57 110

This is an accepted solution.

Here are a few general troubleshooting steps you can consider:

  1. Ensure that your Shopify CLI is updated to the latest version.
  2. Try logging out and then logging back in using the Shopify CLI to refresh your authentication.
  3. Check if your development environment meets all the necessary requirements for the Shopify CLI.
  4. If the issue started after updating to a new version, look for any known issues in the release notes or consider temporarily downgrading to a previous stable version if feasible.

Given the variability of these issues, if the problem persists, I would recommend reaching out to Shopify support

Have I helped? Consider putting coffee in my mouth!
Buy Me a Coffee

View solution in original post

Replies 6 (6)

SomeUsernameHe
Shopify Partner
519 57 110

Could I get a little more info on this issue? What are you doing with the Shopify CLI when you get this error?

Have I helped? Consider putting coffee in my mouth!
Buy Me a Coffee
areesha
Shopify Partner
4 0 0

I'm developing a Shopify app, and I'm encountering an issue. I'm working on Remix. 

areesha
Shopify Partner
4 0 0

I get this error while running the command "npm run dev"

SomeUsernameHe
Shopify Partner
519 57 110

This is an accepted solution.

Here are a few general troubleshooting steps you can consider:

  1. Ensure that your Shopify CLI is updated to the latest version.
  2. Try logging out and then logging back in using the Shopify CLI to refresh your authentication.
  3. Check if your development environment meets all the necessary requirements for the Shopify CLI.
  4. If the issue started after updating to a new version, look for any known issues in the release notes or consider temporarily downgrading to a previous stable version if feasible.

Given the variability of these issues, if the problem persists, I would recommend reaching out to Shopify support

Have I helped? Consider putting coffee in my mouth!
Buy Me a Coffee
SomeUsernameHe
Shopify Partner
519 57 110

I would also try running the command "npm run dev --reset" to reset the connection. Make sure when you reconnect that you choose yes to update URLs.

Have I helped? Consider putting coffee in my mouth!
Buy Me a Coffee

ndt_ts
Shopify Partner
27 3 8

Just check if there is any error in your shopify app like a wrong import or even a small extra character inserted by mistake in your code.
This error will be shown in the console also before you encounter this error. 
After fixing the error, restart the app, it will work fine!