Re: git clone over HTTP returns 500 on invalid host name

2 messages, 2 authors, 2016-06-15 · open the first message on its own page

Re: git clone over HTTP returns 500 on invalid host name

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:54:04

Shawn Pearce [off-list ref] writes:
$ git clone https://this.host.does.not.exist/foo
Cloning into 'foo'...
error: The requested URL returned error: 500 while accessing
http://this.host.does.not.exist/foo/info/refs
fatal: HTTP request failed


Hmm. Telling me the host doesn't exist is more useful than 500:

$ git clone git://this.host.does.not.exist/foo
Cloning into 'foo'...
fatal: Unable to look up this.host.does.not.exist (port 9418) (Name or
service not known)


Does anyone care about this other than me?  :-)

$ git clone https://this.host.does.not.exist/foo
Cloning into 'foo'...
error: Couldn't resolve host 'this.host.does.not.exist' while accessing https://this.host.does.not.exist/foo/info/refs
fatal: HTTP request failed

What are we doing differently?  Perhaps you have a custom proxy that
throws 500 back at you or something?

Re: git clone over HTTP returns 500 on invalid host name

From: Shawn Pearce <hidden>
Date: 2016-06-15 22:54:04

On Wed, Jun 13, 2012 at 4:40 PM, Junio C Hamano [off-list ref] wrote:
Shawn Pearce [off-list ref] writes:
quoted
$ git clone https://this.host.does.not.exist/foo
Cloning into 'foo'...
error: The requested URL returned error: 500 while accessing
http://this.host.does.not.exist/foo/info/refs
fatal: HTTP request failed


Hmm. Telling me the host doesn't exist is more useful than 500:

$ git clone git://this.host.does.not.exist/foo
Cloning into 'foo'...
fatal: Unable to look up this.host.does.not.exist (port 9418) (Name or
service not known)


Does anyone care about this other than me?  :-)

$ git clone https://this.host.does.not.exist/foo
Cloning into 'foo'...
error: Couldn't resolve host 'this.host.does.not.exist' while accessing https://this.host.does.not.exist/foo/info/refs
fatal: HTTP request failed

What are we doing differently?  Perhaps you have a custom proxy that
throws 500 back at you or something?
Grrr. Yes. Its the contrib/persistent-https proxy that is causing
this, and a url.insteadof in ~/.gitconfig that always uses it for
https:

  [url "persistent-https://"]
    insteadof = https://
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help