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

ISSUE - Hang at getting hash API version #5938

Closed
venney opened this issue Mar 2, 2017 · 11 comments
Closed

ISSUE - Hang at getting hash API version #5938

venney opened this issue Mar 2, 2017 · 11 comments

Comments

@venney
Copy link

venney commented Mar 2, 2017

Hi,

Easy to stop at getting latest hash server API version.
Maybe a timeout is needed.

[2017-03-02 22:47:51] [PokemonGoBot] [INFO] Setting start location.
[2017-03-02 22:47:51] [PokemonGoBot] [INFO] Favorite location found: random
[2017-03-02 22:47:51] [PokemonGoBot] [INFO] Location found: Random
[2017-03-02 22:47:51] [PokemonGoBot] [INFO] Now at
[2017-03-02 22:47:51] [PokemonGoBot] [INFO] Login procedure started.
[2017-03-02 22:47:58] [PokemonGoBot] [INFO] Login successful.
[2017-03-02 22:47:59] [PokemonGoBot] [INFO] Niantic Official API Version: 0.57.2

@MerlionRock
Copy link
Contributor

I don't have a issue with it.
Are you able to browse to this address successfully?https://pokehash.buddyauth.com/api/hash/versions

@MerlionRock
Copy link
Contributor

Nvm, I'll do a timeout for it.

@venney
Copy link
Author

venney commented Mar 2, 2017

Yes, https://pokehash.buddyauth.com/api/hash/versions is just working.
So... I don't know where (new code) makes the wait .... ( two bot waits for > 5 hours ... )
Need more debug ...

@MerlionRock
Copy link
Contributor

It doesn't make sense....

Anyone else have the same problem?

@GhosterBot
Copy link
Contributor

no problem at all with 3 accounts, no waiting time

[2017-03-03 09:30:07] [PokemonGoBot] [INFO] Niantic Official API Version: 0.57.2
[2017-03-03 09:30:07] [PokemonGoBot] [INFO] Latest Bossland Hashing API Version: 0.57.3
[2017-03-03 09:30:07] [PokemonGoBot] [INFO] Current PGoAPI is using API Version: 0.57.3. Niantic API Check Pass
[2017-03-03 09:30:07] [PokemonGoBot] [INFO] Captcha Check Passed

@venney
Copy link
Author

venney commented Mar 3, 2017

@MerlionRock , No worry on this. I will check what's happening when I see this again.
Will provide more information then.

@venney
Copy link
Author

venney commented Mar 3, 2017

@MerlionRock , Maybe I found the problem. My DNS seems not correct! After set it manually, then it is working. Thanks for the hint of checking to that URL.

@venney
Copy link
Author

venney commented Mar 3, 2017

@MerlionRock , Update: not due to DNS, maybe "server is too busy".
But it is still not good since the bot may stop for hours for calling urlopen().
Hope this helps.

=== log ===
[2017-03-04 02:44:11] [PokemonGoBot] [INFO] Location found: Random (25.087637, 121.556668, 8)
[2017-03-04 02:44:11] [PokemonGoBot] [INFO] Now at (25.087637, 121.556668, 8)
[2017-03-04 02:44:11] [PokemonGoBot] [INFO] Login procedure started.
[2017-03-04 02:44:19] [PokemonGoBot] [INFO] Login successful.
[2017-03-04 02:44:19] [PokemonGoBot] [INFO] Niantic Official API Version: 0.57.2
[Venney debug] 0000 <== stop here

=== source : pokemongo_bot/init.py ===
link = "https://pokehash.buddyauth.com/api/hash/versions"
print "[Venney debug] 0000"
f = urllib.urlopen(link) <== urlopen just stops
print "[Venney debug] 0001"

@MerlionRock
Copy link
Contributor

Cannot be server too busy, if it's so, many will be affected.

I will code in time out and push the pr.

@venney
Copy link
Author

venney commented Mar 4, 2017

@MerlionRock , Thanks. I tried urllib2 and it works.

@MerlionRock
Copy link
Contributor

PR Submitted

pogarek added a commit that referenced this issue Mar 4, 2017
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