intellij idea - Git: Received HTTP code 503 from proxy after CONNECT -


i checked lot of post related issue, nothing seems fix problem. hope guys can give me magic answer.

i'm using intellij (but tried sourcetree) pull/push/clone repository fisheye. i'm receiving error:

git -c diff.mnemonicprefix=false -c core.quotepath=false fetch origin  fatal: unable access 'https://myuser@myurl/fisheye/git/myrepo.git/': received http code 503 proxy after connect 

hints 503 means temporary downtime due maintenance don't work me, since issue last week now.

hints wrong/missing proxy settings don't seem work either. setup http , https proxy system git , ide (intellij).

it worked before, able clone repository. created new branch, made changes , wanted push master.

i looking forward clever tips.

thanks far

update

i added:

export git_trace_packet=1 export git_trace=1 export git_curl_verbose=1

and received following log:

$ git fetch trace: built-in: git 'fetch' trace: run_command: 'git-remote-https' 'origin' 'https://username@mywebservice.de/randomgit.git/' * couldn't find host mywebservice in _netrc file; using defaults *   trying 15.46.16.11... * connected myproxy.com (15.46.16.11) port 8080 (#0) * establish http proxy tunnel mywebservice.de:443 > connect mywebservice.de:443 http/1.1 host: webapp-entw.mlp.de:443 user-agent: git/1.9.5.msysgit.1 proxy-connection: keep-alive pragma: no-cache  < http/1.1 503 service unavailable < cache-control: no-cache < pragma: no-cache < content-type: text/html; charset=utf-8 < proxy-connection: close < connection: close < content-length: 732 < * received http code 503 proxy after connect * closing connection 0 fatal: unable access 'https://username@mywebservice.de/randomgit.git/': received http code 503 proxy after connect 

i having same error code. me, symptom push remote repo, not pull... in case, appeared turn out name resolution issue.

first, found these settings shed more light on network events.

export git_trace_packet=1 export git_trace=1 export git_curl_verbose=1 

with these settings, received trace this:

prompt$ git pull ... 15:21:17.015575 run-command.c:351       trace: run_command: 'git-remote-https' 'origin' 'https://gitub.com/username/repo' * couldn't find host gitub.com in .netrc file; using defaults * hostname not found in dns cache *   trying proxy-server-ip-address... * connected (proxy-server-ip-address) port 80 (#0) * establish http proxy tunnel gitub.com:443 > connect gitub.com:443 http/1.1 host: gitub.com:443 user-agent: git/2.3.2 (apple git-55) proxy-connection: keep-alive pragma: no-cache  < http/1.1 503 service unavailable < cache-control: no-cache < pragma: no-cache < content-type: text/html; charset=utf-8 < proxy-connection: close < connection: close < content-length: 787 <  * received http code 503 proxy after connect * connection #0 host proxy-server-ip-address left intact fatal: unable access 'https://gitub.com/username/repo/': received http code 503 proxy after connect 

i did pinging github.com, www.github.com, , noticed different results. prompted me update origin url follows.

git remote set-url origin https://www.github.com/username/repo 

simply adding "www." origin url resolved connection issue in case. no more 503s -- push , pulls both succeed.

update

based on updated trace, looks similar issue had. might try temporarily substitute actual ip address of repository server using (rather hostname). if works, solutions name resolution, perhaps modifying /etc/hosts. also, can confirm tried git remote set-url origin include full hostname , not domain name?


Comments

Popular posts from this blog

javascript - Karma not able to start PhantomJS on Windows - Error: spawn UNKNOWN -

Nuget pack csproj using nuspec -

c# - Display ASPX Popup control in RowDeleteing Event (ASPX Gridview) -