I am new to Shopify. I created a first app using Shopify CLI and installed it on admin successfully. I referred to this. https://shopify.dev/docs/apps/build/build?framework=remix When I open preview link, I got an error of “refused to connect”. For a reference, I attached a screenshot. Please help me to fix this.
Topic summary
A new Shopify developer encountered a “refused to connect” error when attempting to preview their first app locally.
Steps taken:
- Created app using
shopify app initvia Shopify CLI - Successfully installed app on admin
- Ran app locally with
shopify app dev - Pressed ‘p’ to open preview link
- Received connection error
Current status:
- User attempted to attach a screenshot for reference but it appears missing
- Another community member requested clarification on the steps and shared a potentially relevant thread discussing similar “refused to connect” errors
- Issue remains unresolved and awaiting further troubleshooting
Hi @GoldenChicken , the screenshot seems to be missing. Can you explain the steps you followed? I found a similar thread here, maybe that helps you out.
Here are my steps.
I created a shopify app using “shopify app init” from shopify cli.
I run this app locally using “shopify app dev” and clicked “p” to open preview link.
I got above message.