Ticket #492 (closed defect: fixed)
In GAE request using python client
| Reported by: | webysther | Owned by: | nick |
|---|---|---|---|
| Priority: | critical | Milestone: | 0.4.2 |
| Component: | Client | Version: | 0.4.1 |
| Keywords: | client, http, content-length | Cc: | |
| Fixed in revision: | 2283 | Branch: | client-content-length-492 |
| Author: | nick |
Description (last modified by thijs) (diff)
unsupported operand type(s) for +: 'int' and 'str'
Traceback (most recent call last): File "/base/python_lib/versions/1/google/appengine/ext/webapp/__init__.py", line 501, in __call__ handler.get(*groups) File "/base/data/home/apps/webservice-credential-hom/2.331952975332179148/service.py", line 209, in get token = service.loginUser( user ) File "/base/data/home/apps/webservice-credential-hom/2.331952975332179148/pyamf/remoting/client/__init__.py", line 52, in __call__ return self.service._call(self, *args) File "/base/data/home/apps/webservice-credential-hom/2.331952975332179148/pyamf/remoting/client/__init__.py", line 101, in _call response = self._gw.execute_single(request) File "/base/data/home/apps/webservice-credential-hom/2.331952975332179148/pyamf/remoting/client/__init__.py", line 409, in execute_single envelope = self._getResponse() File "/base/data/home/apps/webservice-credential-hom/2.331952975332179148/pyamf/remoting/client/__init__.py", line 475, in _getResponse bytes = http_response.read(content_length) File "/base/python_dist/lib/python2.5/StringIO.py", line 134, in read newpos = min(self.pos+n, self.len) TypeError: unsupported operand type(s) for +: 'int' and 'str'
I solved by doing the following:
Line 475 replace:
try: bytes = http_response.read(content_length) except: bytes = http_response.read()
Attachments
Change History
Note: See
TracTickets for help on using
tickets.



