Skip Menu |

This queue is for tickets about the AnyEvent-MtGox-Stream CPAN distribution.

Report information
The Basics
Id: 90527
Status: open
Priority: 0/
Queue: AnyEvent-MtGox-Stream

People
Owner: Nobody in particular
Requestors: paul.g.webster [...] googlemail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Handshake failed
Date: Tue, 19 Nov 2013 15:38:35 +0000
To: bug-AnyEvent-MtGox-Stream [...] rt.cpan.org
From: Paul Webster <paul.g.webster [...] googlemail.com>
Hi there I am trying to recieve data from the MtGox API I tried your example in ex/ But it seems to consistently fail handshaking.. paul@container:~/bots % perl t Socket.IO handshake failed at /home/paul/perl5/lib/perl5/AnyEvent/MtGox/Stream.pm line 36 2013-11-19 15:36:02.207442 +0000 error AnyEvent::Util: Runtime error in AnyEvent::guard callback: Can't call method "destroy" on an undefined value at /home/paul/perl5/lib/perl5/AnyEvent/MtGox/Stream.pm line 111. paul@container:~/bots % cat t #!/usr/bin/env perl use strict; use warnings; use AnyEvent; use AnyEvent::MtGox::Stream; use Carp qw(croak); use Data::Dump; my $timeout = shift || 0; binmode STDOUT, ':encoding(utf-8)'; my $cv = AE::cv; my $client = AnyEvent::MtGox::Stream->new( # secure => 1, on_error => sub { croak(@_) }, on_disconnect => sub { croak("Disconnected") }, on_message => sub { warn $_[0];dd(shift) }, ); my $timer = AE::timer $timeout, 0, sub { undef $client; $cv->send } if $timeout; $cv->recv;
On Tue Nov 19 10:38:44 2013, paul.g.webster@googlemail.com wrote: Show quoted text
> Hi there I am trying to recieve data from the MtGox API I tried your > example in ex/ > > But it seems to consistently fail handshaking.. > > paul@container:~/bots % perl t > Socket.IO handshake failed at > /home/paul/perl5/lib/perl5/AnyEvent/MtGox/Stream.pm line 36 > 2013-11-19 15:36:02.207442 +0000 error AnyEvent::Util: Runtime error > in AnyEvent::guard callback: Can't call method "destroy" on an > undefined value at /home/paul/perl5/lib/perl5/AnyEvent/MtGox/Stream.pm > line 111.
Since you are using the example included in the dist, there was no reason to paste it in the ticket. MtGox's API sucks, plain and simple. I no longer use it because it doesn't work reliably. Google it and you'll see the problem is on their side and most people have issues with it. When I just tried the script the socket.io and websocket handshakes succeeded but no data was sent.
Subject: Re: [rt.cpan.org #90527] Handshake failed
Date: Wed, 20 Nov 2013 17:08:59 +0000
To: bug-AnyEvent-MtGox-Stream [...] rt.cpan.org
From: Paul Webster <paul.g.webster [...] googlemail.com>
ah gotcha not sure if this is helpful at all but for connecting to the stream for listening I did this: http://poe.perl.org/?POE_Cookbook/Web_Sockets On 19/11/2013, gray via RT <bug-AnyEvent-MtGox-Stream@rt.cpan.org> wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=90527 > > > On Tue Nov 19 10:38:44 2013, paul.g.webster@googlemail.com wrote:
>> Hi there I am trying to recieve data from the MtGox API I tried your >> example in ex/ >> >> But it seems to consistently fail handshaking.. >> >> paul@container:~/bots % perl t >> Socket.IO handshake failed at >> /home/paul/perl5/lib/perl5/AnyEvent/MtGox/Stream.pm line 36 >> 2013-11-19 15:36:02.207442 +0000 error AnyEvent::Util: Runtime error >> in AnyEvent::guard callback: Can't call method "destroy" on an >> undefined value at /home/paul/perl5/lib/perl5/AnyEvent/MtGox/Stream.pm >> line 111.
> > Since you are using the example included in the dist, there was no reason to > paste it in the ticket. > > MtGox's API sucks, plain and simple. I no longer use it because it doesn't > work reliably. Google it and you'll see the problem is on their side and > most people have issues with it. > > When I just tried the script the socket.io and websocket handshakes > succeeded but no data was sent. >