The error you're encountering is often due to issues with the HTTP version or the size of the data being pushed. Here are a few potential solutions:
- Switch to HTTP/1.1: The error message points to an issue with HTTP/2. You can force Git to use HTTP/1.1 with the following command¹:
git config --global http.version HTTP/1.1
- Increase the post buffer size: If you're pushing data larger than the postBuffer size, you may encounter this error. Increase the post buffer size with the following command¹³⁴:
git config --global http.postBuffer 157286400
-
Check your internet connection: Slow or unstable internet connections can sometimes cause this error². If possible, try to push your changes using a more reliable internet connection.
-
Push smaller changes: If you're pushing a large amount of data, you might encounter this error². Try to push smaller changes if possible.
Remember to replace --global
with --local
if you want to apply these settings only to the current repository¹. If none of these solutions work, please let me know so I can assist you further.
Source: Conversation with Bing, 3/7/2024
- (1) git - error: RPC failed; curl 92 HTTP/2 stream 0 was not closed cleanly .... https://stackoverflow.com/questions/59282476/error-rpc-failed-curl-92-http-2-stream-0-was-not-closed-cleanly-protocol-erro.
- (2) git - error: RPC failed; curl 92 HTTP/2 stream 0 was not closed cleanly .... https://stackoverflow.com/questions/68928859/error-rpc-failed-curl-92-http-2-stream-0-was-not-closed-cleanly-cancel-err-8.
- (3) error: RPC failed; curl 92 HTTP/2 stream 0 was not closed cleanly .... https://dev.to/obynonwane/error-rpc-failed-curl-92-http-2-stream-0-was-not-closed-cleanly-protocolerror-err-1-3p9i.
- (4) git - Pushing to GitHub issue - HTTP/2 stream 0 was not closed cleanly .... https://stackoverflow.com/questions/65882660/pushing-to-github-issue-http-2-stream-0-was-not-closed-cleanly-cancel-err-8.
- (5) GitHub Error: RPC failed; curl 92 http/2 stream 0 was not closed .... https://stackoverflow.com/questions/69681679/github-error-rpc-failed-curl-92-http-2-stream-0-was-not-closed-cleanly-cancel.
- (6) undefined. https://gist.github.com/daofresh/0a95772d582cafb202142ff7871da2fc.
- (7) undefined. https://confluence.atlassian.com/bitbucketserverkb/git-push-fails-fatal-the-remote-end-hung-up-unexpectedly-779171796.html.
- (8) undefined. https://storage.covid19datahub.io/level/3.csv.
- (9) undefined. http://github.com/large-project-repo.git.