Please don't mark this a duplicate without reading full question.
When I was trying to push my code to our repository, I got below error:
I tried to search this issue on web and I found amazing resources but not exact solution. There were many similar question but I didn't find clear discussion or proper solution.
I referred this question. I also looked into those answers and references which provides on respective answers.
I increased a buffer size as suggested on this answer but not worked for me.
I downgrade HTTP version from HTTP/2 to HTTP/1.1 as suggested on this answer and it worked for me.
I referred One comment where he mentioned that why we've to downgrade HTTP version from HTTP/2 to HTTP/1.1. I didn't understand his comment. Below one is his comment.
In reply to questions about downgrading to HTTP/1.1, the error message posted by OP points to an issue with HTTP/2; it is likely that something beyond OP's control (a proxy, the GIT server, etc.) does not work well with HTTP/2. Until that's fixed, downgrading to HTTP/1.1 is a valid workaround.
So my questions are
- Why should we downgrade HTTP version from HTTP/2 to HTTP/1.1?
- Why increasing the buffer size workaround is not working for everyone?