I've suddenly this morning started getting 500 response from the bitbucket when I try to push my code. I don't remember changing anything on my side, and this all worked fine previously. The Atlassian status page is all green, so I'm not sure if it's just my repo, or what.
Here's the output of the `git push -v` command:
Pushing to https://bitbucket.org/*************
Enumerating objects: 25, done.
Counting objects: 100% (25/25), done.
Delta compression using up to 8 threads
Compressing objects: 100% (17/17), done.
POST git-receive-pack (chunked)
error: RPC failed; HTTP 500 curl 22 The requested URL returned error: 500
send-pack: unexpected disconnect while reading sideband packet
Writing objects: 100% (17/17), 1.64 MiB | 2.47 MiB/s, done.
Total 17 (delta 8), reused 0 (delta 0), pack-reused 0
fatal: the remote end hung up unexpectedly
Everything up-to-date
OK, nevermind, it turns out it was an issue with the git's buffer size (which is 1MB by default ). One image was around 500KB, and probably that was too much for it. I'd never figure it out without ChatGPT honestly...
To change the buffer size (to 500MB):
`git config --global http.postBuffer 524288000`
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.