Am 01.07.2010 10:12, schrieb Pierre Buyle:
> Hi,
>
> Bastian wrote:
>> curl --data '{"type":"PacketPing"}'
>> http://localhost/POKER_REST
>>
>> Traceback (most recent call last): File
>> "/usr/lib/python2.5/site-packages/twisted/internet/defer.py",
>> line 195, in addCallback callbackKeywords=kw) File
>> "/usr/lib/python2.5/site-packages/twisted/internet/defer.py",
>> line 186, in addCallbacks self._runCallbacks() File
>> "/usr/lib/python2.5/site-packages/twisted/internet/defer.py",
>> line 328, in _runCallbacks self.result =
>> callback(self.result, *args, **kw) File
>> "/usr/lib/python2.5/site-packages/pokernetwork/pokersite.py",
>> line 470, in<lambda> d.addCallback(lambda x:
>> defer.maybeDeferred(pipe, self, request, packet)) ---
>> <exception caught here> --- File
>> "/usr/lib/python2.5/site-packages/twisted/internet/defer.py",
>> line 106, in maybeDeferred result = f(*args, **kw) File
>> "/usr/share/pyshared/pokersocial/auth.py", line 79, in
>> rest_filter Pokersocial.verify(site.resource.service,
>> request) File
>> "/usr/lib/python2.5/site-packages/pokersocial/core.py", line
>> 353, in verify signature =
>> base64.decodestring(request.args['oauth_signature'][0])
>> exceptions.KeyError: 'oauth_signature'
>>
>> I really don“t know how to handle this? I got the same error,
>> when I tried to get data for the munin-plugins...
>> [...]
>> Hi, I found this by google:
>> http://black-n-gold.pokersource.info/drupal6/ and used
>> http://black-n-gold.pokersource.info/os_poker-all.tar.bz2 with that
>> http://black-n-gold.pokersource.info/trac/wiki/HowtoInstallOsPoker.
>>
>
> You wont be able to simply query the poker-network installed with
> these instructions using cURL. Because of the added
> <rest_filter>/usr/share/pyshared/pokersocial/auth.py</rest_filter> in
> /etc/poker-network/poker.server.xml, the server requires requests to
> be signed (using OAuth). In the setup these instructions are for, the
> requests are signed by the Open Social container (Shindig) because
> jPoker is modified/configured to use the OS container server as proxy
> for all request (using
> http://wiki.opensocial.org/index.php?title=Gadgets.io_(v0.8)#gadgets.io.makeRequest).
>
> --
> Pierre Buyle
Hello Pierre,
thank you very much for that!
Regards
_______________________________________________
Pokersource-users mailing list
[email protected]
https://mail.gna.org/listinfo/pokersource-users