On Fri, 2011-07-22 at 11:14 +0200, gregor herrmann wrote:
> On Thu, 21 Jul 2011 23:23:20 +0100, Adam D. Barratt wrote:
> 
> > > I'm not sure if this is a problem of debbugs SOAP interface, of
> > > SOAP::Lite or just a user error; but the following simplified test
> > > script throws an error in get_bug_log() and leaves $log undef:
> > Hmmm.  Does the problem happen with all bugs, or just some?  
> 
> To be honest, I haven't tried with all bugs :)
> Just with 2, where it failed; sorry for not providing the bug
> numbers in the first place..
> 
> > $ perl bug.pl 123456
> > ARRAY(0x124e6a8)
> > 
> > Data::Dumper()ing $log also looks sane.
> 
> Yup, 123456 works.
> 
> Hm.
> 
> 611368 is the one I originally tried, and it fails with
> "Can't call method "as_string" on an undefined value at 
> /usr/share/perl5/SOAP/Packager.pm line 188."

I don't know if it helps, but I get the same error with bug #491723. 
With the following code:

use warnings;
use Data::Dumper;
use SOAP::Lite;

my $soap =
SOAP::Lite->uri('Debbugs/SOAP')->proxy('http://bugs.debian.org/cgi-bin/soap.cgi');
print Dumper($soap->get_bug_log(491723)->result);

I get:

Can't call method "as_string" on an undefined value
at /usr/share/perl5/SOAP/Packager.pm line 188.
Connection: close
[...]
Delivered-To:
cont...@bugs.debian.org</header></item></soapenc:Array></get_bug_logResponse></soap:Body></soap:Envelope>
 at testbts.pl line 8

In fact, I use decscripts in my program. When using devscripts:

use warnings;
use lib '/usr/share/devscripts';
use Devscripts::Debbugs;

my $bug_log = Devscripts::Debbugs::bug_log(491723);
print $bug_log;

I get:

Error while retrieving bug log from SOAP server: 200 OK

Cheers,
Mònica

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to