500 INTERNAL SERVER ERROR

223 views
Skip to first unread message

zon vi

unread,
May 8, 2012, 8:39:19 PM5/8/12
to jsonr...@googlegroups.com
I recently installed jsonrpclib, reding this link https://code.djangoproject.com/wiki/JSON-RPC now get the following error.

>>> import jsonrpclib
>>> server = jsonrpclib.Server('http://127.0.0.1:8000/json/')
>>> data = { ... }
>>> server.e.registrar('admin', 'admin', data)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python2.7/dist-packages/jsonrpclib/jsonrpc.py", line 274, in __call__
    return self.__send(self.__name, args)
  File "/usr/local/lib/python2.7/dist-packages/jsonrpclib/jsonrpc.py", line 224, in _request
    response = self._run_request(request)
  File "/usr/local/lib/python2.7/dist-packages/jsonrpclib/jsonrpc.py", line 242, in _run_request
    verbose=self.__verbose
  File "/usr/lib/python2.7/xmlrpclib.py", line 1264, in request
    return self.single_request(host, handler, request_body, verbose)
  File "/usr/lib/python2.7/xmlrpclib.py", line 1312, in single_request
    response.msg,
xmlrpclib.ProtocolError: <ProtocolError for 127.0.0.1:8000/json/: 500 INTERNAL SERVER ERROR>

Any suggestions?

thanks.

Szabolcs Rugina

unread,
May 9, 2012, 4:29:01 AM5/9/12
to jsonr...@googlegroups.com
Hi,

This seems for me not a JSONRPCLIB problem. It seems that something is wrong with  http://127.0.0.1:8000/json/ .
You can try, simple just call that URL in browser, and see what happens. For example, I see just a blank page, with status 412.

But definitely that is better as 500.

I would say, that the server with json has some trouble.

Br,
Szabi
Reply all
Reply to author
Forward
0 new messages