samuraisam / django-json-rpc

JSON-RPC Implementation for Django
MIT License
286 stars 83 forks source link

Raises 400 (bad request) error with django 1.6.+ #51

Closed omigeon closed 9 years ago

omigeon commented 10 years ago

Every call I make since upgrading from 1.5.5 to 1.6.2 gives this traceback :

    output = server.test("test")
  File "F:\Envs\smc_dev\lib\site-packages\jsonrpclib\jsonrpc.py", line 276, in __call__
    return self.__send(self.__name, args)
  File "F:\Envs\smc_dev\lib\site-packages\jsonrpclib\jsonrpc.py", line 224, in _request
    response = self._run_request(request)
  File "F:\Envs\smc_dev\lib\site-packages\jsonrpclib\jsonrpc.py", line 244, in _run_request
    verbose=self.__verbose
  File "F:\Bin\Python\2.7\Lib\xmlrpclib.py", line 1264, in request
    return self.single_request(host, handler, request_body, verbose)
  File "F:\Bin\Python\2.7\Lib\xmlrpclib.py", line 1313, in single_request
    response.msg,
xmlrpclib.ProtocolError: <ProtocolError for localhost:8000/smc/rpc/: 400 BAD REQUEST>

It seems like there is a patch here, but I did not test it :

http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/185403

Solution for me was to stay with django 1.5.5

p3k commented 10 years ago

:+1:

samuraisam commented 9 years ago

It's working with 1.6 now