[dev] jsonrpc vs xmlrpc and gzinflate() buffer error
Michael Rubinsky
mike at theupstairsroom.com
Thu Nov 29 14:22:22 UTC 2007
Quoting Chuck Hagenbuch <chuck at horde.org>:
> 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?
Thanks for the suggestion, Chuck, but I have already tried that. All
I see is a string of binary data which I'm assuming is the gzipped
response. I'll play around with it some more though, at this point
it's a matter of principle :)
Thanks,
mike
--
The Horde Project (www.horde.org)
mrubinsk at horde.org
"Time just hates me. That's why it made me an adult." - Josh Joplin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-keys
Size: 2013 bytes
Desc: PGP Public Key
Url : http://lists.horde.org/archives/dev/attachments/20071129/1df63313/attachment.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: PGP Digital Signature
Url : http://lists.horde.org/archives/dev/attachments/20071129/1df63313/attachment-0001.bin
More information about the dev
mailing list