Skip to content

Error during library use without token #12

@marcoM32

Description

@marcoM32

I try to execute the following example present in the documentation:

use Geo::IPinfo;

$ipinfo = Geo::IPinfo->new();
$details = $ipinfo->info('8.8.8.8');

if (defined $details)   # valid data returned
{
  $city = $details->city; # Emeryville
  $loc = $details->loc; # 37.8342,-122.2900
}
else   # invalid data obtained, show error message
{
  print $ipinfo->error_msg . "\n";
}

but without a token the library fails at line 47.
It is possible fix it?

immagine

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions