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

ConnectionError error no 10054 #284

Closed
rishabhjhaveri10 opened this issue Aug 27, 2017 · 9 comments
Closed

ConnectionError error no 10054 #284

rishabhjhaveri10 opened this issue Aug 27, 2017 · 9 comments

Comments

@rishabhjhaveri10
Copy link

Hi I am trying to get the city, state and country through the ip address.

My data frame has 500,000 rows and I need to apply it on each of them.

I am getting the the connection error after 200 records or so.

I even tried using time.sleep(5) and it still stops after 500 records or so.

Can you please provide alternates or solution to this.

Thank you.

@ebreton
Copy link
Collaborator

ebreton commented Aug 27, 2017

Hi @rishabhjhaver10 ,

Which provider are you using ? Which method ? (geocode method I guess?)
If google, which authentication ?

Cheers,
Manu

@rishabhjhaveri10
Copy link
Author

rishabhjhaveri10 commented Aug 27, 2017 via email

@ebreton
Copy link
Collaborator

ebreton commented Aug 27, 2017

ok, got it. Which provider are you using ? Google ?

Could you copy paste the command/script your are making ? Will be easier to help you :)

@rishabhjhaveri10
Copy link
Author

rishabhjhaveri10 commented Aug 27, 2017 via email

@rishabhjhaveri10
Copy link
Author

rishabhjhaveri10 commented Aug 27, 2017 via email

@rishabhjhaveri10
Copy link
Author

rishabhjhaveri10 commented Aug 27, 2017 via email

@ebreton
Copy link
Collaborator

ebreton commented Aug 28, 2017

Hi @rishabhjhaver10 ,

Ok, your are using the provider ipinfo.io. They have a policy that limits the number of queries you can make per day:

Free usage of our API is limited to 1,000 API requests per day. If you exceed 1,000 requests in a 24 hour period we'll return a 429 HTTP status code to you. If you need to make more requests or custom data, see our paid plans, which all have soft limits.

The source is here, end of the page.
The link to the paid plans is there

Unfortunately, they do not support real bulk lookup: they recommend to do multiple queries (as you already do)

Hence there is nothing we can do right now, I will close the issue.

Keep in mind that If you decide to go for a paid plan, we will need to update geocoder in order to support the credentials. (You will be welcome to make a PR in this case ;) )

Hope that helps!
Manu

@ebreton ebreton closed this as completed Aug 28, 2017
@rishabhjhaveri10
Copy link
Author

rishabhjhaveri10 commented Aug 28, 2017 via email

@DenisCarriere
Copy link
Owner

👍 Thanks Manu for the explanation.

@rishabhjhaver10 Most providers won't allow large volumes of requests and that's when you get into the paid plans, this geocoding library wouldn't allow 500K requests without being blocked or rate limited from the providers.

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

No branches or pull requests

3 participants