Hi AAG,

Great question, this was another issue which I've found and fixed. If
you are comfortable checking out the library from subversion, the
latest revision in the repository fixes this issue. I plan to release
a new download early this week containing fixes for the two issues
that you've brought up (along with a couple of others).

If you feel like fixing this yourself, change the line that sets the
Content-Length header in gdata.alt.appengine so that the header is set
to a str:
all_headers['Content-Length'] = str(len(data_str))

Thank you,

Jeff


On Sep 13, 6:56 am, AAG <[EMAIL PROTECTED]> wrote:
>  Hi Jeff,
>
>  I made the changes requested, and also changed the __ConvertDataPart
> in gdata.alt namespace to _ConvertDataPart, and worked on local
> server.
>
> When i deployed the solution to AppEngine server, the following fault
> appears :
>
> 93.108.116.141 - - [13/09/2008:06:40:35 -0700] "GET / HTTP/1.1" 0 0
> "http://appengine.google.com/deployment?&app_id=nevoa&version_id=1.22";
> -E 09-13 06:40AM 35.504
> <type 'exceptions.TypeError'>: object of type 'int' has no len()
> Traceback (most recent call last):
>   File "/base/data/home/apps/nevoa/1.23/helloworld.py", line 25, in
> <module>
>     client.SetCredentials(username, password)
>   File "/base/data/home/apps/nevoa/1.23/gdata/spreadsheet/text_db.py",
> line 124, in SetCredentials
>     self.__docs_client.ProgrammaticLogin()
>   File "/base/data/home/apps/nevoa/1.23/gdata/service.py", line 449,
> in ProgrammaticLogin
>     headers={'Content-Type':'application/x-www-form-urlencoded'})
>   File "/base/data/home/apps/nevoa/1.23/gdata/alt/appengine.py", line
> 115, in request
>     method=method, headers=all_headers))
>   File "/base/python_lib/versions/1/google/appengine/api/urlfetch.py",
> line 253, in fetch
>     apiproxy_stub_map.MakeSyncCall('urlfetch', 'Fetch', request,
> response)
>   File "/base/python_lib/versions/1/google/appengine/api/
> apiproxy_stub_map.py", line 46, in MakeSyncCall
>     stub.MakeSyncCall(service, call, request, response)
>   File "/base/python_lib/versions/1/google/appengine/runtime/
> apiproxy.py", line 244, in MakeSyncCall
>     rpc.MakeCall(package, call, request, response)
>   File "/base/python_lib/versions/1/google/appengine/runtime/
> apiproxy.py", line 144, in MakeCall
>     self.request.Output(e)
>   File "/base/python_lib/versions/1/google/net/proto/
> ProtocolBuffer.py", line 150, in Output
>     self.OutputUnchecked(e)
>   File "/base/python_lib/versions/1/google/appengine/api/
> urlfetch_service_pb.py", line 627, in OutputUnchecked
>     self.header_[i].OutputUnchecked(out)
>   File "/base/python_lib/versions/1/google/appengine/api/
> urlfetch_service_pb.py", line 423, in OutputUnchecked
>     out.putPrefixedString(self.value_)
>   File "/base/python_lib/versions/1/google/net/proto/
> ProtocolBuffer.py", line 329, in putPrefixedString
>     self.putVarInt32(len(v))
>
> How can i solve this issue ?
>
> Thanks in advance,
> AAG
> Pinxer.com
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Docs Data APIs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Docs-Data-APIs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to