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

Network Error: Connection reset by peer (os error 104) #363

Open
michel-thomas opened this issue Oct 14, 2024 · 3 comments
Open

Network Error: Connection reset by peer (os error 104) #363

michel-thomas opened this issue Oct 14, 2024 · 3 comments

Comments

@michel-thomas
Copy link

I don't use often git-workspace but since one or two month I get this error:

$ git workspace update
Fetching repositories...
Error: Error fetching repositories from Gitlab user/group michel-thomas at https://gitlab.com in directory gitlab.com, using the token stored in GITLAB_TOKEN

Caused by:
    0: https://gitlab.com/api/graphql: Network Error: Network Error: Error encountered in the status line: Connection reset by peer (os error 104)
    1: Network Error: Error encountered in the status line: Connection reset by peer (os error 104)
    2: Connection reset by peer (os error 104)

I checked the token: Ok, scope api, not expired.

When I go into one of my repos subdir, git pull / git fetch is working well.

And version is latest:

$ git workspace -V
git-workspace 1.6.0

Thanks for your help.

@jagu-sayan
Copy link
Contributor

Hello @michel-thomas,

Do you use some custom ssl certificates or are you behind a firewall or proxy ?
Maybe it's related to #343

@michel-thomas
Copy link
Author

No, I run it on my laptop Ubuntu 24.04 behind my ISP. And GitLab.com has its own TLS certificates.

I use SSH with ed25519 key, and testing connection is ok:

$ ssh -T [email protected]        
Welcome to GitLab, @michel-thomas!

@jagu-sayan
Copy link
Contributor

Maybe your GITLAB_TOKEN is expired ? I think that when I see this error Error fetching repositories from Gitlab user/group michel-thomas at https://gitlab.com in directory gitlab.com, using the token stored in GITLAB_TOKEN

git-workspace try to do a graphql request using your GITLAB_TOKEN to fetch repositories in your Gitlab group.

The rest of the error looks more like a network error, but maybe this error is not handled gracefully, I will check that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants