Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

git error: RPC failed; HTTP 502 curl 22 The requested URL returned error: 502 Proxy Error

I work with tortoise git for my actual project. Me and the other members have some trouble since last week with our repository (worked perfect before).

When I want to push/pull/clone (HTTPS), I get the following error:

fatal: The remote end hung up unexpectedly error: RPC failed; HTTP 502 curl 22 The requested URL returned error: 502 Proxy Error

Seems like something went wrong with the proxy server. I can use the repository as usual in the local network of my institute, but I get no access from home.

Does anyone has an idea how to fix this error? Unfortunately i can't find any other posts about this problem.

Greetings, Homer

like image 764
Homer Avatar asked Jun 15 '18 15:06

Homer


1 Answers

This kind of error happens mostly because of 2 reasons:

  1. pushing binary files/jar files to repo

  2. if the file(s) size is big.

Solution:
1. Use admin credential for pushing code change
2. execute the command git config --local http.postBuffer 157286400 before pushing.

like image 177
TheSprinter Avatar answered Oct 29 '22 06:10

TheSprinter