others-how to solve 'SSL_ERROR_SYSCALL in connection to github.com:443 ' when pushing code to github.com?
In this post, I would demo how to solve the below error when we trying to push code using git to github.com.
➜ bswen-springboot24 git:(main) git push fatal: unable to access 'https://github.com/bswen/bswen-springboot24.git/': LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443
- Mac OS or Linux System
3. The solution
3.1 What does this error mean?
SSL_ERROR_SYSCALL indicates that some problem happened with the underlying I/O (Should be TCP in this case).
3.2 The solution #1
You should try to disable your local proxies that used to connect to github.com.
Try this command:
➜ bswen-springboot24 git:(main) git config --global --unset http.proxy
Or this command:
git config --global --unset http.proxy git config --global --unset https.proxy
Now try again to push your code to github:
➜ bswen-springboot24 git:(main) git push Enumerating objects: 15, done. Counting objects: 100% (15/15), done. Delta compression using up to 8 threads Compressing objects: 100% (8/8), done. Writing objects: 100% (14/14), 2.95 KiB | 1.48 MiB/s, done. Total 14 (delta 1), reused 0 (delta 0) remote: Resolving deltas: 100% (1/1), done. To https://github.com/bswen/bswen-springboot24.git bdffeeb..69a008e main -> main ➜ bswen-springboot24 git:(main)
Now it works!
In this post, I demonstrated how to solve the SSL_ERROR_SYSCALL in connection to github.com:443 when pushing code to github, the key point is try to disable your local http proxy or https proxy.