Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Client network socket disconnected before secure TLS connection was established #2140

Closed
Guo8a opened this issue May 22, 2024 · 2 comments
Closed
Labels
Bug Something isn't working

Comments

@Guo8a
Copy link

Guo8a commented May 22, 2024

What is the location of your example repository?

At my local folder

Which package or tool is having this issue?

Hydrogen

What version of that package or tool are you using?

"@remix-run/react": "^2.8.0", "@remix-run/server-runtime": "^2.8.0", "@shopify/cli": "3.60.0", "@shopify/cli-hydrogen": "^8.0.4", "@shopify/hydrogen": "2024.4.2", "@shopify/remix-oxygen": "^2.0.4", "graphql": "^16.6.0", "graphql-tag": "^2.12.6", "isbot": "^3.8.0", "react": "^18.2.0", "react-dom": "^18.2.0"

What version of Remix are you using?

"@remix-run/react": "^2.8.0", "@remix-run/server-runtime": "^2.8.0",

Steps to Reproduce

  1. npm create @shopify/hydrogen@latest -- --quickstart
  2. cd hydrogen-quickstart
  3. npm install
  4. npm run dev

There is nothing wrong with the above steps, and I can run the project perfectly and can see the content at localhost:3000.

continue:

npx shopify hydrogen link

Something error occured:

FetchError: request to 
    https://***.myshopify.com/admin/api/unstable/graphql.json failed, reason: 
    Client network socket disconnected before secure TLS connection was established
    Code: ECONNRESET

I'm in China mainland, can't visit shopify resource...
Shopify/cli#3225 (comment)
Is there anyway to fix the problem... I want link my shopify use hydrogen.
Thanks >_<

Expected Behavior

link shopify success

Actual Behavior

at above

@wizardlyhel
Copy link
Contributor

Mmmm ...

From the looks of it, it is still part of Shopify CLI issue. Hydrogen CLI makes a request to the admin api. This uses the graphqlRequest which uses a httpAgent that isn't wrapped by the HttpsProxyAgent work around that was proposed in the other issue thread.

@blittle blittle added the Bug Something isn't working label Jun 21, 2024
@blittle
Copy link
Contributor

blittle commented Jul 18, 2024

Closing due to no response. Please re-open if still an issue.

@blittle blittle closed this as completed Jul 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants