Deployment failed,Display reason: socket hang up

When I use npm run deploy to deploy, the program displays request to https://partners.shopify.com/api/cli/graphql failed, reason: socket hang up, the screenshot is as follows

Hi Merodi,

It sounds like you’re encountering a connection issue when trying to deploy your app using the npm run deploy command. This could be due to several reasons such as network issues, firewalls, or even problems the Shopify API.

Here are a few steps you can take troubleshoot this issue:

  1. Disable Firewall/VPN: If you are using a VPN or firewall, it might be preventing the connection. Try disabling them temporarily to see if that resolves the issue.

  2. Verify API key and secret: Ensure that you’re using the correct API key secret in your Shopify CLI configuration.

  3. Update Shopify CLI: Make sure you’re using the latest version of Shopify CLI. You can update it using shopify upgrade.

Try the above steps and if you’re still seeing this error let us know and we’ll dive into it a bit deeper.

Hope this helps,