Re: InvalidResponseError: headers must be str

2012-01-02 Thread Waldek M.
On Sat, 31 Dec 2011 17:40:15 -0800 (PST), Niklas Rosencrantz wrote: > Thanks for the replies here. I will have patience but this bug > is blocking my integration efforts. I tried logging the TCP > packets with tcpdump and nothing special appeared. Well, it's free software, isn't it? You may either

Re: InvalidResponseError: headers must be str

2011-12-31 Thread Niklas Rosencrantz
Thanks for the replies here. I will have patience but this bug is blocking my integration efforts. I tried logging the TCP packets with tcpdump and nothing special appeared. Niklas -- http://mail.python.org/mailman/listinfo/python-list

Re: InvalidResponseError: headers must be str

2011-12-31 Thread Steven D'Aprano
On Sat, 31 Dec 2011 05:31:14 -0800, Niklas Rosencrantz wrote: > I'm still no further to reaching a solution and my efforts of logging > the headers didn't produce anything. I'm certain that it's upgrading > from ptyhon 2.5 to python 2.7 that causes this since the GAE SDK uses > WSGI instead of CGI

Re: InvalidResponseError: headers must be str

2011-12-31 Thread Niklas Rosencrantz
I'm still no further to reaching a solution and my efforts of logging the headers didn't produce anything. I'm certain that it's upgrading from ptyhon 2.5 to python 2.7 that causes this since the GAE SDK uses WSGI instead of CGI now. Any idea about my problem? Thank you -- http://mail.python.o

Re: InvalidResponseError: headers must be str

2011-12-31 Thread Steven D'Aprano
On Sat, 31 Dec 2011 12:04:13 +0200, Serhiy Storchaka wrote: > 31.12.11 08:40, Steven D'Aprano написав(ла): >> 'JSON' is already a string. Calling str() on it is a waste of time. > > from __future__ import unicode_literals Fair point. Your correction is noted. -- Steven -- http://mail.python.

Re: InvalidResponseError: headers must be str

2011-12-31 Thread Serhiy Storchaka
31.12.11 08:40, Steven D'Aprano написав(ла): 'JSON' is already a string. Calling str() on it is a waste of time. from __future__ import unicode_literals -- http://mail.python.org/mailman/listinfo/python-list

Re: InvalidResponseError: headers must be str

2011-12-31 Thread Niklas Rosencrantz
I can log the headers and it seems that they are strings: INFO 2011-12-31 08:43:03,286 paypal.py:143] headers: {'X-PAYPAL-REQUEST-DATA-FORMAT': 'JSON', 'X-PAYPAL-SECURITY-PASSWORD': '1324348659', 'X-PAYPAL-RESPONSE-DATA-FORMAT': 'JSON', 'X-PAYPAL-SECURITY-SIGNATURE': 'Al6H7Bq3kp4bKFht2fR-p

Re: InvalidResponseError: headers must be str

2011-12-31 Thread Niklas Rosencrantz
r/montao/google/appengine/runtime/wsgi.py", line 129, in _StartResponse raise InvalidResponseError('headers must be str') InvalidResponseError: headers must be str INFO 2011-12-31 04:55:36,484 recording.py:372] Saved; key: __appstats__:034800, part: 137 bytes, full: 27325 b

Re: InvalidResponseError: headers must be str

2011-12-30 Thread Steven D'Aprano
On Fri, 30 Dec 2011 20:58:10 -0800, Niklas Rosencrantz wrote: > I'm upgrading from python 2.5 to python 2.7 and then I'm starting to get > this error: > > InvalidResponseError: headers must be str Please show the ENTIRE traceback, not just the error message. The traceba

InvalidResponseError: headers must be str

2011-12-30 Thread Niklas Rosencrantz
I'm upgrading from python 2.5 to python 2.7 and then I'm starting to get this error: InvalidResponseError: headers must be str I think it is because somewhere my HTTP headers are cast to unicode instead of string but I can't find where in the code? The example code I'm t