Skip to content

Error: read: connection reset by peer for any action  #9130

Closed

Description

@isaac-israel-aquant

Describe the bug

gh version 2.49.2 (2024-05-13)

Steps to reproduce the behavior

  1. gh auth login
  2. Input:
? What account do you want to log into? GitHub.com
? What is your preferred protocol for Git operations on this host? SSH
? Upload your SSH public key to your GitHub account? /Users/isaac/.ssh/id_ed25519.pub
? Title for your SSH key: GitHub CLI
? How would you like to authenticate GitHub CLI? Login with a web browser

Expected vs actual behavior

To be login

and
I am receiving this error

read tcp 10.0.0.14:49544->140.82.121.6:443: read: connection reset by peer

Logs

Paste the activity from your command line. Redact if needed.

Activity

  1. williammartin commented on May 28, 2024

    @williammartin
    Member

    Hi @isaac-israel-aquant, sorry you're having troubles. This kind of looks like a networking issue between you and the GitHub API. What happens if you remove gh from the equation and run:

    curl -vvv -L \
      -H "Accept: application/vnd.github+json" \
      -H "X-GitHub-Api-Version: 2022-11-28" \
      https://api.github.com/
    
  2. isaac-israel-aquant commented on May 28, 2024

    @isaac-israel-aquant
    Author

    Hey @williammartin, thanks for the feedback, I already solved but yes it was a networking issue between you and the GitHub API. I just need to reinitialize my modern But It was really weird because I had internet and the only thing that was not working was GitHub API. Are you able to tell me why this happened?

  3. williammartin commented on May 28, 2024

    @williammartin
    Member

    Absolutely no idea sorry. It could have been a problem anywhere along the network. Someone else from Israel reported a temporary networking issue last week (assuming from your name that you are in Israel): #9123 so perhaps there was something going on specifically in networking between Israel and GitHub.

    Thanks for letting me know it's resolved!

  4. DeanAyalon commented on May 29, 2024

    @DeanAyalon

    Absolutely no idea sorry. It could have been a problem anywhere along the network. Someone else from Israel reported a temporary networking issue last week (assuming from your name that you are in Israel): #9123 so perhaps there was something going on specifically in networking between Israel and GitHub.

    Thanks for letting me know it's resolved!

    Could be, but then it'd have to deal with certain areas, or ISPs, as my home was fine accessing GitHub, while my work server wasn't.

    Also, the work server COULD surf github.com, and I browsed it on the web just fine. Only the git and gh requests never made it

    I guess there's no use pondering on it now, with no way of checking though

  5. isaac-israel-aquant commented on May 29, 2024

    @isaac-israel-aquant
    Author

    It was the same for me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggh-authrelating to the gh auth commandneeds-triageneeds to be reviewed

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions