TypeError on HTTP smart server
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Fix Released
|
Medium
|
Unassigned |
Bug Description
This only happened with a branch of a rails project I had, and it seemed to be a certain project only - if necessary I may be able to provide a copy of the branch.
When attempting to push the branch to an HTTP smart server (apache+mod_wsgi) I get the following traceback on the server:
2302.623 _iter_with_errors caught error
2302.625 Traceback (most recent call last):
File "/usr/lib/
yield None, iterator.next()
File "/usr/lib/
for bytes in byte_stream:
File "/usr/lib/
for record in substream:
File "/usr/lib/
for record in stream:
File "/usr/lib/
chk_
File "/usr/lib/
text_
File "_chk_map_pyx.pyx", line 416, in bzrlib.
TypeError: bytes must be a string
If I access the same server using bzr+ssh, I can push the branch successfully (but I can't branch/pull with bzr+http still).
Disabling the _chk_map_pyx module by renaming the .so file allowed the pure-python fallback to function correctly.
Bazaar (bzr) 2.2.1
Python interpreter: /usr/bin/python 2.6.5
Python standard library: /usr/lib/python2.6
Platform: Linux-2.
bzrlib: /usr/lib/
Related branches
- bzr-core: Pending requested
-
Diff: 35 lines (+3/-4)2 files modifiedbzrlib/_chk_map_pyx.pyx (+3/-2)
bzrlib/tests/test_chk_map.py (+0/-2)
Changed in bzr: | |
status: | Confirmed → Fix Released |
I'm glad you have a successful workaround!
This is a bit strange, I wonder what's going on. At a guess it might be a unicode vs. bytes issue. I've got a simple patch to make that error slightly more informative, to hopefully confirm if that's the case.