Code Monkey home page Code Monkey logo

json-xml-rpc's Introduction

json-xml-rpc's People

Contributors

westonruter avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

json-xml-rpc's Issues

Filed to send base64 image with 1MB of size

Server responsed with error (code 1024): Unable to tokenize the JSON input; invalid data.

When request to send big image file to server, it fails.

Let me guide how to resolved it.

I will try to code and fix it.

Error on When try to test it via python xmlrpc client lib.

Traceback (most recent call last):
File "rpccall.py", line 15, in
print proxy.ourTime(1)
File "/usr/lib/python2.7/xmlrpclib.py", line 1224, in call
return self.__send(self.__name, args)
File "/usr/lib/python2.7/xmlrpclib.py", line 1578, in __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 1297, in single_request
return self.parse_response(response)
File "/usr/lib/python2.7/xmlrpclib.py", line 1473, in parse_response
return u.close()
File "/usr/lib/python2.7/xmlrpclib.py", line 793, in close
raise Fault(**self._stack[0])
xmlrpclib.Fault: <Fault 8: 'Error raised when calling method "ourTime": Undefined index: HTTP_ACCEPT'>

When I am going to access xmlrpc service from python client code it show me this error why ?

firefox truncates long xmlrpc response - suggested fix

What steps will reproduce the problem?

  1. firefox
  2. long xmlrpc response

in _parseXMLRPC you return only first child value:

case 'string':
849 if(!typeEL.firstChild)
850 return "";
854 return typeEL.firstChild.nodeValue;

in firefox it truncates the long xmlrpc response. i fixed the issue by changing:

848 case 'string':
849 if(!typeEL.firstChild)
850 return "";
851 var rt = '';
852 for(var child, k=0; child = typeEL.childNodes.item(k); k++)
853 rt += child.nodeValue;
854 return rt;

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.