I’m developing a Shopify app and trying to make my app load inside the Shopify admin. However, after days of troubleshooting, I keep getting the error:
“app.pixla.dev refused to connect.”
Here’s what I’ve done so far:
I have set up a Cloudflare tunnel to my local development environment. The tunnel status in Cloudflare says “Healthy.”
The URLs in my Shopify app settings match the URLs in my app’s config files.
My app runs fine locally, but it won’t load inside Shopify admin.
I suspect that something is wrong with the communication between my Mac (local dev environment) and Shopify through the tunnel.
I’m looking for someone experienced in Shopify app development & Cloudflare tunnels who can help me debug this issue. If you’re a consultant and work with this, I’m happy to discuss compensation.
Would really appreciate a second pair of eyes on this! Thanks in advance.
I was able to replicate the issue. I saw the error comes from /config/db.js file.
You will need to place those files in web directory.
Also, I saw your app uses Node + Express + MongoDB. I highly recommend checking @kinngh’s app template - Shopify Node.js x Express.js x React.js Boilerplate.
Current Status: Invalid Path Error in Shopify App Preview
I wanted to share the current status of my Shopify app project and see if anyone has encountered a similar issue or has suggestions.
Project Setup:
I’m developing a Shopify app and running it with the following command: npm run dev -- --tunnel-url https://dev.pixla.dev:8080
The app URL is configured as https://dev.pixla.dev and the tunnel is set up through Cloudflare. The tunnel status is healthy and I’m able to run the app locally.
App Configuration:
App URL: https://dev.pixla.dev/
Redirect URLs: All required redirect URLs are set in the Shopify admin: https://dev.pixla.dev/auth/callback, https://dev.pixla.dev/auth/shopify/callback, https://dev.pixla.dev/api/auth/callback
Environment Variables: The .env file includes the correct SHOPIFY_API_KEY, SHOPIFY_API_SECRET, and other necessary credentials.
App Routing (React):
I’m using React for routing with react-router-dom:
The redirect URLs are correctly configured in Shopify admin.
The SHOPIFY_API_KEY and SHOPIFY_API_SECRET are set up in the .env file.
The app is running successfully in development mode with npm run dev.
The tunnel is working, and I’ve confirmed the local server responds with 200 OK when checked with curl.
Next Steps:
I’m still troubleshooting the invalid path error. The app seems to be configured correctly, and the environment setup appears fine, but the issue persists.
If anyone has experienced something similar or has any suggestions, I would appreciate your help!