[python-bugzilla] [BUG] Server error: buf must be a byte string

Cole Robinson crobinso at redhat.com
Mon Nov 17 15:43:46 UTC 2014


On 11/17/2014 09:37 AM, Jani Nikula wrote:
> On Mon, 17 Nov 2014, Arun Babu Neelicattu <abn at redhat.com> wrote:
>> Jani; for what it is worth, could not reproduce using Python 2.7.5, 2.7.8 and 3.3.2. Tried using both requests 1.x and 2.x too. This might have to do with the proxy issues requests had via urllib3. Think it should be fixed in 2.x.
>>
>> https://github.com/kennethreitz/requests/pull/478
>> https://github.com/shazow/urllib3/pull/68
>>
>> Without knowing your environment that is my best guess. Can you
>> provide what version of python-bugzilla and requests you are using?
>> And probably will be good to see what happens without the proxy.
>
> I ruled out proxy, same thing without.
>
> python-bugzilla is current git master.
>
> The dependencies are from Debian testing, python-requests version
> 2.4.3-2 and python-urllib3 version 1.9.1-2.
>
> BR,
> Jani.
>
>
>

I see you've installed bugzilla locally, maybe try running directly from the 
git checkout using ./bugzilla-cli, might rule out potential installation issues

If you get the same result, stick a 'print requests' in bugzilla/base.py and 
retry, ensure you are using the expected requests module path. I've hit issues 
before with having an older version of a library somewhere in pythonpath

FWIW the bug that came with the python-bugzilla commit you identified (I 
should have stuck this in the changelog): 
https://bugzilla.redhat.com/show_bug.cgi?id=1104197

Should be easy enough to conditionalize that bit on older python-requests, but 
I'd still like to figure out what's going on first.

- Cole


More information about the python-bugzilla mailing list