1. Bitbucket
  2. Public Issue Tracker
  3. master
  4. Issues


Issue #1895 resolved

hg clone/push/pull fails with HTTP Error 414: Request-URI Too Large

created an issue

We have a large repository with over 300 heads (http://bitbucket.org/mediawiki/root).

However, due to http://mercurial.selenic.com/bts/issue2126 anyway to clone/pull this repository fails. It is difficult to fix this bug without changing the wire protocol, but maybe the HTTP server URL length limit can be pushed to accommodate large multi-head repositories?

Comments (6)

  1. Jesper Noehr
    • changed status to open

    I've adjusted the buffer size from 4k to 32k, should have plenty of space to hold the request now. Also, I've adjusted the max POST body from 100M to 2G.

    Let me know if this has fixed it.

  2. mediawiki reporter
    • attached hg

    Unfortunately, still getting 414. Looks like the HTTP request (including IP and TCP headers) is around 10K, so it should fit the new limit. Attached is a tcpdump of the TCP conversation.

  3. Anonymous

    I get the same thing when I attempt

    $ hg clone http://bitbucket.org/mirror/liftweb
    requesting all changes
    abort: HTTP Error 414: Request-URI Too Large

    If I do hg clone -r tip http://butbucket.org/mirrow/liftweb it works, but subsequent hg incoming, hg pull etc then get:

    $ hg pull
    pulling from http://bitbucket.org/mirror/liftweb
    searching for changes
    abort: HTTP Error 500: Internal Server Error

    I can do hg incoming -r tip but it's not optimal.

  4. Log in to comment