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

Re: fatal: protocol error: bad line length character: GET <<<<<

From
ILIlari Liusvaara <ilari.liusvaara@elisanet.fi>
Date
Jan 26, 2011, 05:59 UTC
Message-ID
<20110126055955.GA13304@LK-Perkele-VI.localdomain>
In-Reply-To
<AANLkTimDbHdOwkPu6qihdgJFY0bS0XTVatLCriCmM1nX@mail.gmail.com>
On Wed, Jan 26, 2011 at 12:53:11PM +0800, Alan Sargent wrote:
Show 13 quoted lines
> Hello,
> 
> The "fatal: protocol error: bad line length character" seems fairly
> common, but in the archive and the faq there isn't reference to this
> particular instances - GET.
> 
> alan@toaster:~$ git init myrepo
> Initialized empty Git repository in /home/nev/myrepo/.git/
> alan@toaster:~$ cd myrepo
> alan@toaster:~/myrepo$ git daemon
> fatal: protocol error: bad line length character: GET  << just hitting
> F5 in the browser
> fatal: protocol error: bad line length character: GET
[...]

Git daemon serves git:// protocol, not HTTP, you can't access it from web browser.

If you are looking for Git repository web interface, look at gitweb or cgit.

The error is because HTTP begins the request with "GET " and git daemon is trying to interpret that as length of packet, failing and spitting out a fatal error.

-Ilari
Previous: Alan SargentNext: Alan Sargent
Message 2 of 3 in “fatal: protocol error: bad line length character: GET <<<<<”
  1. Alan SargentJan 26, 2011
  2. Ilari LiusvaaraJan 26, 2011
  3. Alan SargentJan 26, 2011

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.