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

3 messages from 2011-01-26 to 2011-01-26. Participants: Alan Sargent, Ilari Liusvaara.
Thread: https://gitlist.dev/t/26336

## Alan Sargent, 2011-01-26 04:53

Subject: fatal: protocol error: bad line length character: GET <<<<<
Message-ID: <AANLkTimDbHdOwkPu6qihdgJFY0bS0XTVatLCriCmM1nX@mail.gmail.com>
URL: https://gitlist.dev/e/AANLkTimDbHdOwkPu6qihdgJFY0bS0XTVatLCriCmM1nX%40mail.gmail.com

```
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
browser showing Error 101 (net::ERR_CONNECTION_RESET): Unknown error.
fatal: protocol error: bad line length character: GET
fatal: protocol error: bad line length character: GET
fatal: protocol error: bad line length character: GET
fatal: protocol error: bad line length character: GET
fatal: protocol error: bad line length character: GET

This is on Ubuntu, git installed fresh or built it from latest stable
source. Same on a repo that has stuff in it.

Anyone know why?

Cheers.

```

## Ilari Liusvaara, 2011-01-26 05:59

Subject: Re: fatal: protocol error: bad line length character: GET <<<<<
Message-ID: <20110126055955.GA13304@LK-Perkele-VI.localdomain>
URL: https://gitlist.dev/e/20110126055955.GA13304%40LK-Perkele-VI.localdomain
In-Reply-To: <AANLkTimDbHdOwkPu6qihdgJFY0bS0XTVatLCriCmM1nX@mail.gmail.com>

```
On Wed, Jan 26, 2011 at 12:53:11PM +0800, Alan Sargent wrote:
> 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

```

## Alan Sargent, 2011-01-26 06:40

Subject: Re: fatal: protocol error: bad line length character: GET <<<<<
Message-ID: <AANLkTin2Fn4mbrrDF4ceEYQZoyGRNymsk0aouBaUp94-@mail.gmail.com>
URL: https://gitlist.dev/e/AANLkTin2Fn4mbrrDF4ceEYQZoyGRNymsk0aouBaUp94-%40mail.gmail.com
In-Reply-To: <20110126055955.GA13304@LK-Perkele-VI.localdomain>

```
Ah! Thank you very much.

:)

On Wed, Jan 26, 2011 at 1:59 PM, Ilari Liusvaara
<ilari.liusvaara@elisanet.fi> wrote:
> On Wed, Jan 26, 2011 at 12:53:11PM +0800, Alan Sargent wrote:
>> 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
>

```
