[Bug]: getaddrinfo ERRNOTFOUND during shopify app dev
Please confirm that you have:
- [X] Searched existing issues to see if your issue is a duplicate. (If you’ve found a duplicate issue, feel free to add additional information in a comment on it.)
- [X] Reproduced the issue in the latest CLI version.
In which of these areas are you experiencing a problem?
App
Expected behavior
shopify app dev succesfully completes the startup and my application is accessible in the development store.
Actual behavior
21:55:48 │ graphiql │ GraphiQL server started on port 3457
21:55:49 │ remix │
21:55:49 │ remix │ 💿 remix dev
21:55:49 │ remix │
21:55:49 │ remix │ info building...
21:55:50 │ remix │ info built (755ms)
21:55:50 │ remix │ [shopify-api/INFO] version 9.3.0, environment Remix
21:55:50 │ remix │ [remix-serve] http://localhost:35611 (http://192.168.0.11:35611)
21:55:50 │ remix │ Could not reach Remix dev server at https://generating-trend-beginning-singing.trycloudflare.com/ping
21:55:50 │ remix │
21:55:50 │ remix │ /home/yan/code/discounter/node_modules/@remix-run/web-fetch/src/fetch.js:112
21:55:50 │ remix │ reject(new FetchError(request to ${request.url} failed, reason: ${err.message}, 'system', err));
21:55:50 │ remix │ ^
21:55:50 │ remix │ FetchError: request to https://generating-trend-beginning-singing.trycloudflare.com/ping failed, reason: getaddrinfo ENOTFOUND
generating-trend-beginning-singing.trycloudflare.com
21:55:50 │ remix │ at ClientRequest.
Verbose output
https://github.com/jan-gebauer/metafield_discounts/blob/6425ecf7a7b9f366caf7e028d73b0f12a4259510/output.txt
Reproduction steps
- Run
shopify app devon my machine - Observe the issue
Operating System
Pop!_OS 22.04 LTS
Shopify CLI version (check your project's package.json if you're not sure)
3.60.0
Shell
No response
Node version (run node -v if you're not sure)
v20.11.0
What language and version are you using in your application?
TypeScript, Node
Note that running shopify auth logout and then shopify app dev alleviates the issue then but if I quit shopify app dev and run it again, I get the error again.
Hi @jan-gebauer, could you please run the same command with the verbose flag: shopify app dev --verbose and attach the output here? that'd help us investigate the issue
Hello @isaacroldan , thank you for getting back to me. I just want to clear something up. I posted a link to the verbose output in my repository because the output is too large for pastebin, and therefore, I assume, also for this page. If you still think I should post it, I'd be happy to do so.
Hi @jan-gebauer, in that verbose output I don't see the ERRNOTFOUND error. Is that the right output? What should I see in that file? :)
Hello, @isaacroldan, I also don't see the error. I was surprised by that as well. I ran something like shopify app dev > output.txt. Since I didn't see the error, I was hoping i would get help from the contributors. Perhaps there's a better way to export it?
That way should work fine. Do you see the error in the terminal but not on the exported file?
Difficult to say. The verbose output keeps scrolling, so it needs to be timed. I'll try again when I get home but my initial attempts did not work.
On Mon, 13 May 2024, 11:46 Isaac Roldán, @.***> wrote:
That way should work fine. Do you see the error in the terminal but not on the exported file?
— Reply to this email directly, view it on GitHub https://github.com/Shopify/cli/issues/3874#issuecomment-2107122044, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACEX3WU6BEPKCF5IYV6RERTZCCDWFAVCNFSM6AAAAABHOHGVPGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMBXGEZDEMBUGQ . You are receiving this because you were mentioned.Message ID: @.***>
I am also facing the same issue
Likewise. I've tried both ngrok and cloudflare tunnels but the issue persists either way. It doesn't work for me even when I log out of Shopify and log back in. I've also tried renewing my IP address, using a different network, using a VPN, changing node versions, and clearing my DNS. Nothing seems to work.
This issue seems inactive. If it's still relevant, please add a comment saying so. Otherwise, take no action. → If there's no activity within a week, then a bot will automatically close this. Thanks for helping to improve Shopify's dev tooling and experience.
P.S. You can learn more about why we stale issues here.