Posted on 2008-09-22 21:25:28-07 by zynnel
Problems with Flickr API
Hi, has anyone encountered this error:
Use of uninitialized value in string ne at /usr/local/perl-5.8.7/lib/site_perl/5.8.7/Flickr/API.pm +line 109.
? I am trying to execute the following command and there seems to be a problem with the parsing:
my $response = $API->execute_method('flickr.groups.getInfo', {'group_id' => $group_id});
In API.pm, this error corresponds to the following lines:
my $tree = XML::Parser::Lite::Tree::instance()->parse($response->{_content}); my $rsp_node = $self->_find_tag($tree->{children}); (109) if ($rsp_node->{name} ne 'rsp'){
After printing some of the intermediate results in API.pm, I noticed that
$response->{_content}
returns the correct data in XML format but after the parsing,
$rsp_node
ends up being an empty string. I tried also calling people.getInfo and same things happened. Any ideas? Thanks, zynnel
Direct Responses: Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.