[issue1392] KeyError: 'content-type' when pushing to bitbucket
sagikliwon
mercurial-bugs at selenic.com
Sat Nov 22 15:00:42 UTC 2008
New submission from sagikliwon <sagikliwon at gmail.com>:
The following error is produced when pushing to bitbucket.
Please note that I am not behind a proxy and added the following trace
--- a/mercurial/httprepo.py Mon Aug 18 16:50:36 2008 -0500
+++ b/mercurial/httprepo.py Thu Aug 21 09:46:00 2008 -0500
@@ -303,6 +303,7 @@
if data:
self.ui.debug(_("sending %s bytes\n") % len(data))
resp = urllib2.urlopen(request(cu, data, headers))
+ self.ui.debug(_("got headers: %s\n") % resp.headers)
except urllib2.HTTPError, inst:
if inst.code == 401:
raise util.Abort(_('authorization failed'))
The detailed traceback are as follows:
hg push -v --debug http://bitbucket.org/xxxx
using http://bitbucket.org/xxxx
pushing to http://bitbucket.org/xxxx
sending capabilities command
got headers: Server: nginx/0.6.31
Date: Sat, 22 Nov 2008 14:39:52 GMT
Content-Type: application/mercurial-0.1
Vary: Cookie
Content-Length: 54
ETag: "623a7efb30b8fd933aed20c9df695480"
Connection: Keep-Alive
capabilities: unbundle=HG10GZ,HG10BZ,HG10UN lookup changegroupsubset
sending heads command
got headers: Server: nginx/0.6.31
Date: Sat, 22 Nov 2008 14:39:53 GMT
Content-Type: application/mercurial-0.1
Vary: Cookie
Content-Length: 164
ETag: "10b4b81e6e3c3f8f3edeb2ca141a7335"
Connection: Keep-Alive
searching for changes
common changesets up to 2ae56754e4d1 09344eee9782 cede5f8c55d3 17d7f976d0e5
1 changesets found
List of changesets:
ef12bed69ae446388abdc63b0c0606ca8e0241e9
sending unbundle command
sending 2378 bytes
got headers: Cache-Control: no-store
Pragma: no-cache
Cache-Control: no-cache
X-Bypass-Cache: Application and Content Networking System Software 5.4.7
Connection: Close
** unknown exception encountered, details follow
** report bug details to http://www.selenic.com/mercurial/bts
** or mercurial at selenic.com
** Mercurial Distributed SCM (version 1.0.2)
Traceback (most recent call last):
File "/usr/bin/hg", line 20, in <module>
mercurial.dispatch.run()
File "/usr/lib/python2.5/site-packages/mercurial/dispatch.py", line 20, in run
sys.exit(dispatch(sys.argv[1:]))
File "/usr/lib/python2.5/site-packages/mercurial/dispatch.py", line 29, in
dispatch
return _runcatch(u, args)
File "/usr/lib/python2.5/site-packages/mercurial/dispatch.py", line 45, in
_runcatch
return _dispatch(ui, args)
File "/usr/lib/python2.5/site-packages/mercurial/dispatch.py", line 364, in
_dispatch
ret = _runcommand(ui, options, cmd, d)
File "/usr/lib/python2.5/site-packages/mercurial/dispatch.py", line 417, in
_runcommand
return checkargs()
File "/usr/lib/python2.5/site-packages/mercurial/dispatch.py", line 373, in
checkargs
return cmdfunc()
File "/usr/lib/python2.5/site-packages/mercurial/dispatch.py", line 356, in
<lambda>
d = lambda: func(ui, repo, *args, **cmdoptions)
File "/usr/lib/python2.5/site-packages/mercurial/commands.py", line 2109, in
push
r = repo.push(other, opts['force'], revs=revs)
File "/usr/lib/python2.5/site-packages/mercurial/localrepo.py", line 1518, in
push
return self.push_unbundle(remote, force, revs)
File "/usr/lib/python2.5/site-packages/mercurial/localrepo.py", line 1598, in
push_unbundle
return remote.unbundle(cg, remote_heads, 'push')
File "/usr/lib/python2.5/site-packages/mercurial/httprepo.py", line 428, in
unbundle
heads=' '.join(map(hex, heads)))
File "/usr/lib/python2.5/site-packages/mercurial/httprepo.py", line 327, in
do_cmd
proto = resp.headers['content-type']
File "/usr/lib/python2.5/rfc822.py", line 384, in __getitem__
return self.dict[name.lower()]
KeyError: 'content-type'
----------
messages: 7959
nosy: sagikliwon
priority: bug
status: unread
title: KeyError: 'content-type' when pushing to bitbucket
____________________________________________________
Mercurial issue tracker <mercurial-bugs at selenic.com>
<http://www.selenic.com/mercurial/bts/issue1392>
____________________________________________________
More information about the Mercurial-devel
mailing list