Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error during library use without token #12

Open
marcoM32 opened this issue Feb 15, 2021 · 2 comments
Open

Error during library use without token #12

marcoM32 opened this issue Feb 15, 2021 · 2 comments

Comments

@marcoM32
Copy link

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

@marcoM32 marcoM32 changed the title Impossibility to use the free plan Error during library use without token Feb 15, 2021
@UmanShahzad
Copy link
Contributor

Hey @marcoM32, thanks for the report. I'll get to solving this soon.

Until then though, you should just signup for the service, which is free, and use a token for 50k free req/month.

@marcoM32
Copy link
Author

Hi @UmanShahzad, thanks alot for your support!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants