[dev] jsonrpc vs xmlrpc and gzinflate() buffer error

Chuck Hagenbuch chuck at horde.org
Thu Nov 29 04:20:01 UTC 2007


Quoting Michael Rubinsky <mike at theupstairsroom.com>:

> I'm going nuts with this.  Can anyone else verify this behaviour?
>
> I'm calling the (newly added) _whups_addVersion() method via rpc:
>
> $request = Horde_RPC::request('jsonrpc',
> 'http://server.com/horde/rpc.php', 'tickets.addVersion',
>                                 array($queueId, 'version string',
> 'version description'), array('user' => 'myname', 'pass' => 'mypass'));
>
> I consistently get a gzinflate() buffer error in
> HTTP_Response::_decodeGzip() with this when calling TO any box other
> than localhost.  On the otherhand, changing the call to xmlrpc as so:
>
> $request = Horde_RPC::request('xmlrpc',
> 'http://server.com/horde/rpc.php', 'tickets.addVersion',
>                                 array($queueId, 'version string',
> 'version description'), array('user' => 'myname', 'pass' => 'mypass'));
>
>
> works like a charm.  I'm out of ideas after a few hours of
> playing...any hints?  ;)

I haven't tried it, but my best guess is to dump the raw response and  
see if it has a PHP error/warning mixed with the gzipped response?

-chuck


More information about the dev mailing list