I'm wondering if it's also possible that the json encoder does not
write objects the way that proto-rpc expects. Can you use your
browses debugger to look at the actual content of the ajax request?
--
- Rafe Kaplan
- - - [26/Mar/2012:11:56:02 -0700] "POST /guestRPC.get_tags HTTP/1.1" 500 238 "mysite" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.137 Safari/535.19" "mysite" ms=152 cpu_ms=0 api_cpu_ms=0 cpm_usd=0.000138 pending_ms=86 instance=...Entered guestRPC handler.
An unexpected error occured when handling RPC: No JSON object could be decoded: line 1 column 0 (char 0)
Traceback (most recent call last):
File "/base/python_runtime/python_lib/versions/1/protorpc/webapp/service_handlers.py", line 601, in handle
request = mapper.build_request(self, method_info.request_type)
File "/base/python_runtime/python_lib/versions/1/protorpc/webapp/service_handlers.py", line 235, in build_request
return self.__protocol.decode_message(request_type, handler.request.body)
File "/base/python_runtime/python_lib/versions/1/protorpc/protojson.py", line 156, in decode_message
dictionary = json.loads(encoded_message)
File "/base/python_runtime/python_lib/versions/1/simplejson/__init__.py", line 388, in loads
return _default_decoder.decode(s)
File "/base/python_runtime/python_lib/versions/1/simplejson/decoder.py", line 402, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/base/python_runtime/python_lib/versions/1/simplejson/decoder.py", line 420, in raw_decode
raise JSONDecodeError("No JSON object could be decoded", s, idx)
JSONDecodeError: No JSON object could be decoded: line 1 column 0 (char 0)Internal Server Error
Have you checked the server logs to see what the stack trace looks
like for this application? It will indicate where the problem might
be.I'm wondering if it's also possible that the json encoder does not
write objects the way that proto-rpc expects. Can you use your
browses debugger to look at the actual content of the ajax request?