-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Bot crash in login procedure #4456
Comments
Looks like a problem with setup. |
The default setup generated by ./setup.py will also show the same problem.
|
More info:
|
It's turn out an IP issue. Fixed by running the bot using torrify. |
1 similar comment
It's turn out an IP issue. Fixed by running the bot using torrify. |
@nugrahawahyu can you elaborate on using torify? |
@TokarevI install torsock: run the bot: |
Expected Behavior
bot to run
Actual Behavior
bot crash in login procedure
Your FULL config.json
{
"auth_service": "google",
"username": "_",
"password": "",
"location": "**",
"gmapkey": "**",
"encrypt_location": "",
"websocket_server": false,
"heartbeat_threshold": 10,
"tasks": [
{
"type": "HandleSoftBan"
},
{
"type": "SleepSchedule",
"config": {
"enabled": false,
"time": "22:54",
"duration":"7:46",
"time_random_offset": "00:24",
"duration_random_offset": "00:43"
}
},
{
"type": "CollectLevelUpReward"
},
{
"type": "IncubateEggs",
"config": {
"longer_eggs_first": true
}
},
{
"type": "UpdateLiveStats",
"config": {
"enabled": true,
"min_interval": 10,
"stats": ["username", "level", "uptime", "stardust_earned", "xp_earned", "xp_per_hour", "stops_visited"],
"terminal_log": true,
"terminal_title": true
}
},
{
"type": "TransferPokemon",
"config": {
"transfer_wait_min": 1,
"transfer_wait_max": 4
}
},
{
"type": "NicknamePokemon",
"config": {
"enabled": false,
"nickname_template": "{iv_pct}{iv_ads}"
}
},
{
"type": "EvolvePokemon",
"config": {
"evolve_all": "Pidgey,Rattata,Caterpie,Weedle,Zubat,Spearow",
"first_evolve_by": "iv",
"evolve_above_cp": 0,
"evolve_above_iv": 0,
"logic": "or",
"evolve_speed": 20,
"use_lucky_egg": false
}
},
{
"type": "RecycleItems",
"config": {
"min_empty_space": 15,
"max_balls_keep": 150,
"max_potions_keep": 75,
"max_berries_keep": 65,
"max_revives_keep": 30,
"item_filter": {
"Pokeball": {"keep": 10},
"Greatball": {"keep": 25},
"Ultraball": {"keep": 100},
"Potion": {"keep": 0},
"Super Potion": {"keep": 0},
"Hyper Potion": {"keep": 75},
"Revive": {"keep": 30},
"Razz Berry": {"keep": 65}
},
"recycle_wait_min": 1,
"recycle_wait_max": 4
}
},
{
"type": "CatchPokemon",
"config": {
"catch_visible_pokemon": true,
"catch_lured_pokemon": true,
"min_ultraball_to_keep": 5,
"catch_throw_parameters": {
"excellent_rate": 0.3,
"great_rate": 0.4,
"nice_rate": 0.2,
"normal_rate": 0.1,
"spin_success_rate" : 0.6
},
"catch_simulation": {
"flee_count": 3,
"flee_duration": 2,
"catch_wait_min": 2,
"catch_wait_max": 6,
"berry_wait_min": 2,
"berry_wait_max": 3,
"changeball_wait_min": 2,
"changeball_wait_max": 3
}
}
},
{
"type": "SpinFort",
"config": {
"spin_wait_min": 2,
"spin_wait_max": 3
}
},
{
"type": "MoveToFort",
"config": {
"lure_attraction": true,
"lure_max_distance": 190
}
},
{
"type": "FollowSpiral",
"config": {
"diameter": 4,
"step_size": 70
}
}
],
"map_object_cache_time": 5,
"forts": {
"avoid_circles": true,
"max_circle_size": 50,
"cache_recent_forts": true
},
"walk_max": 9.16,
"walk_min": 4.17,
"debug": false,
"test": false,
"health_record": true,
"location_cache": true,
"distance_unit": "km",
"reconnecting_timeout": 15,
"logging_color": true,
"catch": {
"any": {"catch_above_cp": 0, "catch_above_iv": 0, "logic": "or"},
"// Example of always catching Rattata:": {},
"// Rattata": { "always_catch" : true }
},
"release": {
"// Legendary pokemons (Goes under S-Tier)": {},
"Lapras": { "release_below_cp": 1041, "release_below_iv": 0.8, "logic": "and" },
"Moltres": { "release_below_cp": 1132, "release_below_iv": 0.8, "logic": "and" },
"Zapdos": { "release_below_cp": 1087, "release_below_iv": 0.8, "logic": "and" },
"Articuno": { "release_below_cp": 1039, "release_below_iv": 0.8, "logic": "and" },
}
Output when issue occurred
2016-08-21 04:27:57,449 [ cli] [INFO] PokemonGO Bot v1.0
2016-08-21 04:27:57,472 [ cli] [INFO] commit: 601e21d
2016-08-21 04:27:57,480 [ cli] [INFO] Configuration initialized
2016-08-21 04:27:57,481 [pokemongo_bot.health_record.bot_event] [INFO] Health check is enabled. For more information:
2016-08-21 04:27:57,481 [pokemongo_bot.health_record.bot_event] [INFO] https://github.com/PokemonGoF/PokemonGo-Bot/tree/dev#analytics
2016-08-21 04:27:57,499 [requests.packages.urllib3.connectionpool] [INFO] Starting new HTTP connection (1): www.google-analytics.com
2016-08-21 04:27:57,635 [PokemonGoBot] [INFO] [set_start_location] Setting start location.
2016-08-21 04:27:57,636 [PokemonGoBot] [INFO] [x] Coordinates found in passed in location, not geocoding.
2016-08-21 04:27:57,636 [PokemonGoBot] [INFO] [location_found] Location found: 1.251237,103.817795 (1.251237, 103.817795, 8.0)
2016-08-21 04:27:57,636 [PokemonGoBot] [INFO] [position_update] Now at (1.251237, 103.817795, 8.0)
2016-08-21 04:27:57,637 [PokemonGoBot] [INFO] [login_started] Login procedure started.
Traceback (most recent call last):
File "pokecli.py", line 674, in
main()
File "pokecli.py", line 176, in main
report_summary(bot)
File "pokecli.py", line 211, in report_summary
metrics.capture_stats()
File "/PokemonGo-Bot/pokemongo_bot/metrics.py", line 84, in capture_stats
response_dict = request.call()
File "/PokemonGo-Bot/pokemongo_bot/api_wrapper.py", line 233, in call
result = self._call()
File "/PokemonGo-Bot/pokemongo_bot/api_wrapper.py", line 157, in _call
accelerometer_axes=3
File "/PokemonGo-Bot/local/lib/python2.7/site-packages/google/protobuf/internal/python_message.py", line 533, in init
setattr(self, field_name, field_value)
File "/PokemonGo-Bot/local/lib/python2.7/site-packages/google/protobuf/internal/python_message.py", line 669, in field_setter
new_value = type_checker.CheckValue(new_value)
File "/PokemonGo-Bot/local/lib/python2.7/site-packages/google/protobuf/internal/type_checkers.py", line 134, in CheckValue
raise ValueError('Value out of range: %d' % proposed_value)
ValueError: Value out of range: -122
2016-08-21 04:27:58,453 [sentry.errors] [ERROR] Sentry responded with an error: 'module' object has no attribute 'HTTPSHandler' (url: https://app.getsentry.com/api/90254/store/)
Traceback (most recent call last):
File "/PokemonGo-Bot/local/lib/python2.7/site-packages/raven/transport/threaded.py", line 174, in send_sync
super(ThreadedHTTPTransport, self).send(data, headers)
File "/PokemonGo-Bot/local/lib/python2.7/site-packages/raven/transport/http.py", line 47, in send
ca_certs=self.ca_certs,
File "/PokemonGo-Bot/local/lib/python2.7/site-packages/raven/utils/http.py", line 44, in urlopen
class ValidHTTPSHandler(urllib2.HTTPSHandler):
AttributeError: 'module' object has no attribute 'HTTPSHandler'
2016-08-21 04:27:58,455 [sentry.errors.uncaught] [ERROR] [u'ValueError: Value out of range: -122', u' File "pokecli.py", line 674, in ', u' File "pokecli.py", line 176, in main', u' File "pokecli.py", line 211, in report_summary', u' File "pokemongo_bot/metrics.py", line 84, in capture_stats', u' File "pokemongo_bot/api_wrapper.py", line 233, in call', u' File "pokemongo_bot/api_wrapper.py", line 157, in _call', u' File "/PokemonGo-Bot/local/lib/python2.7/site-packages/google/protobuf/internal/python_message.py", line 533, in init', u' File "/PokemonGo-Bot/local/lib/python2.7/site-packages/google/protobuf/internal/python_message.py", line 669, in field_setter', u' File "/PokemonGo-Bot/local/lib/python2.7/site-packages/google/protobuf/internal/type_checkers.py", line 134, in CheckValue']
Sun Aug 21 04:27:58 EDT 2016 Pokebot Stopped.
Press any button or wait 20 seconds to continue.
Steps to Reproduce
-clone the repository
-do ./setup.sh
-do ./run.sh
Other Information
OS:
linux
Branch:
master
Git Commit:
601e21d
Python Version:
Python 2.7.6
The text was updated successfully, but these errors were encountered: