Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit / JGit » Getting Transport Exception: cannot git upload pack
Getting Transport Exception: cannot git upload pack [message #1855164] Fri, 30 September 2022 06:44 Go to next message
monty 99 is currently offline monty 99Friend
Messages: 1
Registered: September 2022
Junior Member
Hi communnity,
I am using Jgit libraray to clone a github repo with following code :

Git git = Git.cloneRepository()
.setURI( "https://github.com/CSSEGISandData/COVID-19.git" )
.setCredentialsProvider(new UsernamePasswordCredentialsProvider("",""))
.call();
}

I am getting TranportException : cannot open git-upload-pack while cloning github repository using personal access token, but able to clone bitbucket repo.
I am on corporate network. What could be the reason ?
Caused by: org.eclipse.jgit.errors.TransportException: https://github.com/CSSEGISandData/COVID-19.git: cannot open git-upload-pack
at org.eclipse.jgit.transport.TransportHttp.connect(TransportHttp.java:551) ~[org.eclipse.jgit-4.6.0.201612231935-r.jar:4.6.0.201612231935-r]
at org.eclipse.jgit.transport.TransportHttp.openFetch(TransportHttp.java:311) ~[org.eclipse.jgit-4.6.0.201612231935-r.jar:4.6.0.201612231935-r]
at org.eclipse.jgit.transport.FetchProcess.executeImp(FetchProcess.java:136) ~[org.eclipse.jgit-4.6.0.201612231935-r.jar:4.6.0.201612231935-r]
at org.eclipse.jgit.transport.FetchProcess.execute(FetchProcess.java:122) ~[org.eclipse.jgit-4.6.0.201612231935-r.jar:4.6.0.201612231935-r]
at org.eclipse.jgit.transport.Transport.fetch(Transport.java:1201) ~[org.eclipse.jgit-4.6.0.201612231935-r.jar:4.6.0.201612231935-r]
at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:128) ~[org.eclipse.jgit-4.6.0.201612231935-r.jar:4.6.0.201612231935-r]
... 28 common frames omitted
Caused by: java.net.ConnectException: Connection time out: github.com
at org.eclipse.jgit.util.HttpSupport.response(HttpSupport.java:203) ~[org.eclipse.jgit-4.6.0.201612231935-r.jar:4.6.0.201612231935-r]
at org.eclipse.jgit.transport.TransportHttp.connect(TransportHttp.java:489) ~[org.eclipse.jgit-4.6.0.201612231935-r.jar:4.6.0.201612231935-r]
... 33 common frames omitted

Thanks
Re: Getting Transport Exception: cannot git upload pack [message #1855206 is a reply to message #1855164] Fri, 30 September 2022 21:38 Go to previous message
Matthias Sohn is currently offline Matthias SohnFriend
Messages: 1268
Registered: July 2009
Senior Member
I could clone this repo using the latest jgit command line client (6.4.0-SNAPSHOT) from the master branch:

$ jgit version
jgit version 6.4.0-SNAPSHOT

$ jgit clone https://github.com/CSSEGISandData/COVID-19
Cloning into 'COVID-19'...
remote: Enumerating objects: 519885
remote: Counting objects: 100% (2936/2936)
remote: Compressing objects: 100% (2058/2058)
Receiving objects: 100% (519885/519885)
Resolving deltas: 100% (443577/443577)
Checking out files: 100% (2112/2112)

Why are using a 6 years old version of JGit ?
Try the latest release 6.3.0.
Previous Topic:Differences between Merge Modes
Next Topic:Authentication Error when cloning Private Repo
Goto Forum:
  


Current Time: Wed Apr 24 23:23:52 GMT 2024

Powered by FUDForum. Page generated in 0.02683 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top