hydrogen icon indicating copy to clipboard operation
hydrogen copied to clipboard

[BUG]Client network socket disconnected before secure TLS connection was established

Open jullite opened this issue 3 years ago • 3 comments

Describe the bug Client network socket disconnected before secure TLS connection was established

To Reproduce

  • yarn create @shopify/hydrogen

  • yarn install

  • yarn dev

  • set my store token and domain rightly

  • visit localhost:3000

  • get error image

  • Hydrogen version 0.14.0

  • Node version 16.13.1

  • Device details MacBook Pro (13-inch, M1, 2020)

jullite avatar Jul 23 '22 10:07 jullite

it seems the node version problem, after I update node version to 18.6.0, it works fine in my end. By the way, the readme says it only need 16.5.0 node version or higher, maybe it's need to be updated?

jullite avatar Jul 23 '22 10:07 jullite

I'm now getting another problem... My network is ok and I have not change any thing with my code. Can any one help me? image

jullite avatar Jul 24 '22 03:07 jullite

@jullite I would double check your hydrogen config. If you're using environment variables, they will not read from process.env, but use Oxygen.env instead. Typically this means it didn't read the values you're expecting from the hydrogen config has been my experience.

sebinievas avatar Jul 25 '22 14:07 sebinievas