Fatal errors when cloning with Git clone https

Noel Harland
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 6, 2024

Just installed Git on Windows 11 laptop. Created a repository called Git_Learn with some default files.

Using git clone https://{user}@bitbucket.org/{AccountName}/git_learn.git

Authentication is AOK but I receive a couple of different errors if I repeat the command.

fatal: unable to access 'https://bitbucket.org/{accountName}/git_learn.git/': Failure when receiving data from the peer

And

error: RPC failed; curl 56 Failure when receiving data from the peer
fetch-pack: unexpected disconnect while reading sideband packet
fatal: protocol error: bad pack header

I've turned off anti-virus and added https://bitbucket.org/ to trusted sites just in case.

My internet connection seems fine, I have another laptop (work) and it all works fine on that. Which is unusual as it's far more restrictive.

1 answer

1 vote
Syahrul
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 7, 2024

G'day, @Noel Harland 

Welcome to the community.

The error typically happens when the default postbuffer is smaller than the data you try to push. So, could you try to increase your git post buffer and see if that helps?

git config --global http.postBuffer 157286400

Regards,
Syahrul

Noel Harland
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 10, 2024

Thanks, I tried that but it didn't make any difference, I'm not doing a push, I'm doing a clone of a very small archive 3,359 bytes.

I have another laptop that works fine, it's a work laptop on a vpn and connects with SSO and much larger repositories.

The clone works sporadically. Mostly fails but occasionally works. 

 

Syahrul
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 11, 2024

Hey @Noel Harland 

Thanks for the update. We may need more logging to determine the issue, but if it's intermittent, I suggest changing the connection from HTTPS to SSH to see if it's reproducible.

This will help us see whether it's a local network issue.

Regards,
Syahrul

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events