git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

From
Junio C Hamano <gitster@pobox.com>
Date
Jun 13, 2012, 23:40 UTC
Message-ID
<7vbokmg4qf.fsf@alter.siamese.dyndns.org>
In-Reply-To
<CAJo=hJuax3-x53HJT-s32euyf2=d57MsRCQWo6NZO3OL35+o7g@mail.gmail.com>
Shawn Pearce <spearce@spearce.org> writes:
Show 16 quoted lines
> $ 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?

Previous: Shawn PearceNext: Shawn Pearce
Message 2 of 3 in “git clone over HTTP returns 500 on invalid host name”
  1. Shawn PearceJun 13, 2012
  2. Junio C HamanoJun 13, 2012
  3. Shawn PearceJun 13, 2012

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.