Shopify / cli

Build apps, themes, and hydrogen storefronts for Shopify
https://shopify.dev
MIT License
404 stars 122 forks source link

[Bug]: getaddrinfo ERRNOTFOUND during shopify app dev #3874

Closed jan-gebauer closed 1 month ago

jan-gebauer commented 4 months ago

Please confirm that you have:

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. (/home/yan/code/discounter/node_modules/@remix-run/web-fetch/src/fetch.js:112:11) 21:55:50 │ remix │ at ClientRequest.emit (node:events:530:35) 21:55:50 │ remix │ at TLSSocket.socketErrorListener (node:_http_client:495:9) 21:55:50 │ remix │ at TLSSocket.emit (node:events:518:28) 21:55:50 │ remix │ at emitErrorNT (node:internal/streams/destroy:169:8) 21:55:50 │ remix │ at emitErrorCloseNT (node:internal/streams/destroy:128:3) 21:55:50 │ remix │ at processTicksAndRejections (node:internal/process/task_queues:82:21)

Verbose output

https://github.com/jan-gebauer/metafield_discounts/blob/6425ecf7a7b9f366caf7e028d73b0f12a4259510/output.txt

Reproduction steps

  1. Run shopify app dev on my machine
  2. 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

jan-gebauer commented 4 months ago

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.

isaacroldan commented 4 months ago

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

jan-gebauer commented 4 months ago

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.

isaacroldan commented 3 months ago

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? :)

jan-gebauer commented 3 months ago

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?

isaacroldan commented 3 months ago

That way should work fine. Do you see the error in the terminal but not on the exported file?

jan-gebauer commented 3 months ago

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: @.***>

BoraVivek-Furrl commented 3 months ago

I am also facing the same issue

HadiMalikDev commented 2 months ago

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.

Screenshot 2024-06-12 at 10 09 55 PM
github-actions[bot] commented 1 month ago

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.