{"action":"created","issue":{"url":"https://api.github.com/repos/PokemonGoMap/PokemonGo-Map/issues/462","repository_url":"https://api.github.com/repos/PokemonGoMap/PokemonGo-Map","labels_url":"https://api.github.com/repos/PokemonGoMap/PokemonGo-Map/issues/462/labels{/name}","comments_url":"https://api.github.com/repos/PokemonGoMap/PokemonGo-Map/issues/462/comments","events_url":"https://api.github.com/repos/PokemonGoMap/PokemonGo-Map/issues/462/events","html_url":"https://github.com/PokemonGoMap/PokemonGo-Map/issues/462","id":170534769,"number":462,"title":"First search step of every worker returns 0/0/0","user":{"login":"Shobba","id":2971787,"avatar_url":"https://avatars.githubusercontent.com/u/2971787?v=3","gravatar_id":"","url":"https://api.github.com/users/Shobba","html_url":"https://github.com/Shobba","followers_url":"https://api.github.com/users/Shobba/followers","following_url":"https://api.github.com/users/Shobba/following{/other_user}","gists_url":"https://api.github.com/users/Shobba/gists{/gist_id}","starred_url":"https://api.github.com/users/Shobba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Shobba/subscriptions","organizations_url":"https://api.github.com/users/Shobba/orgs","repos_url":"https://api.github.com/users/Shobba/repos","events_url":"https://api.github.com/users/Shobba/events{/privacy}","received_events_url":"https://api.github.com/users/Shobba/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/PokemonGoMap/PokemonGo-Map/labels/duplicate","name":"duplicate","color":"cccccc"},{"url":"https://api.github.com/repos/PokemonGoMap/PokemonGo-Map/labels/minor","name":"minor","color":"c2e0c6"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2016-08-10T22:33:44Z","updated_at":"2016-08-11T07:10:13Z","closed_at":null,"body":"## Expected Behavior\r\nAfter successful login every worker should find something (spawn, pokestop and/or gym) during its first search step and following steps.\r\n\r\n## Current Behavior\r\nAfter successful login the first search step of every worker (even with just one account) returns 'Upserted 0 pokemon, 0 pokestops, and 0 gyms'. Starts working correctly with its seconds search step.\r\n\r\n```\r\n2016-08-11 00:27:51,358 [      MainThread][        models][    INFO] Connecting to local SQLite database\r\n2016-08-11 00:27:51,361 [   search_thread][        search][    INFO] Search overseer starting\r\n2016-08-11 00:27:51,363 [   search_thread][        search][    INFO] Starting search worker threads\r\n2016-08-11 00:27:51,367 [   search_thread][        search][    INFO] New location caught, moving search grid\r\n2016-08-11 00:27:51,370 [ search_worker_0][        search][    INFO] Search step 1 beginning (queue size is 1)\r\n2016-08-11 00:27:51,372 [ search_worker_0][      auth_ptc][    INFO] PTC User Login for: xxxxxxx\r\n2016-08-11 00:27:52,084 [ search_worker_0][      auth_ptc][    INFO] PTC User Login successful.\r\n2016-08-11 00:27:52,084 [ search_worker_0][      auth_ptc][    INFO] Request PTC Access Token...\r\n2016-08-11 00:27:52,224 [ search_worker_0][      auth_ptc][    INFO] PTC Access Token successfully retrieved.\r\n2016-08-11 00:27:53,095 [ search_worker_0][        models][    INFO] Upserted 0 pokemon, 0 pokestops, and 0 gyms\r\n2016-08-11 00:28:02,374 [ search_worker_0][        search][    INFO] Search step 2 beginning (queue size is 59)\r\n2016-08-11 00:28:06,467 [ search_worker_0][        models][    INFO] Upserted 0 pokemon, 539 pokestops, and 17 gyms\r\n2016-08-11 00:28:13,376 [ search_worker_0][        search][    INFO] Search step 3 beginning (queue size is 58)\r\n2016-08-11 00:28:17,374 [ search_worker_0][        models][    INFO] Upserted 2 pokemon, 529 pokestops, and 18 gyms\r\n```\r\n\r\nTwo workers:\r\n```\r\n2016-08-11 00:35:52,750 [      MainThread][        models][    INFO] Connecting to local SQLite database\r\n2016-08-11 00:35:52,754 [   search_thread][        search][    INFO] Search overseer starting\r\n2016-08-11 00:35:52,754 [   search_thread][        search][    INFO] Starting search worker threads\r\n2016-08-11 00:35:52,758 [   search_thread][        search][    INFO] New location caught, moving search grid\r\n2016-08-11 00:35:52,759 [ search_worker_0][        search][    INFO] Search step 1 beginning (queue size is 2)\r\n2016-08-11 00:35:52,761 [ search_worker_0][      auth_ptc][    INFO] PTC User Login for: xxxxxxxx\r\n2016-08-11 00:35:53,469 [ search_worker_0][      auth_ptc][    INFO] PTC User Login successful.\r\n2016-08-11 00:35:53,469 [ search_worker_0][      auth_ptc][    INFO] Request PTC Access Token...\r\n2016-08-11 00:35:53,607 [ search_worker_0][      auth_ptc][    INFO] PTC Access Token successfully retrieved.\r\n2016-08-11 00:35:54,595 [ search_worker_0][        models][    INFO] Upserted 0 pokemon, 0 pokestops, and 0 gyms\r\n2016-08-11 00:35:56,763 [ search_worker_1][        search][    INFO] Search step 2 beginning (queue size is 59)\r\n2016-08-11 00:35:56,764 [ search_worker_1][      auth_ptc][    INFO] PTC User Login for: yyyyyyyy\r\n2016-08-11 00:35:57,445 [ search_worker_1][      auth_ptc][    INFO] PTC User Login successful.\r\n2016-08-11 00:35:57,446 [ search_worker_1][      auth_ptc][    INFO] Request PTC Access Token...\r\n2016-08-11 00:35:57,583 [ search_worker_1][      auth_ptc][    INFO] PTC Access Token successfully retrieved.\r\n2016-08-11 00:35:58,296 [ search_worker_1][        models][    INFO] Upserted 0 pokemon, 0 pokestops, and 0 gyms\r\n2016-08-11 00:36:00,763 [ search_worker_0][        search][    INFO] Search step 3 beginning (queue size is 58)\r\n2016-08-11 00:36:04,765 [ search_worker_0][        models][    INFO] Upserted 1 pokemon, 529 pokestops, and 18 gyms\r\n2016-08-11 00:36:04,769 [ search_worker_1][        search][    INFO] Search step 4 beginning (queue size is 57)\r\n2016-08-11 00:36:08,761 [ search_worker_0][        search][    INFO] Search step 5 beginning (queue size is 56)\r\n2016-08-11 00:36:08,888 [ search_worker_1][        models][    INFO] Upserted 3 pokemon, 541 pokestops, and 18 gyms\r\n2016-08-11 00:36:12,767 [ search_worker_1][        search][    INFO] Search step 6 beginning (queue size is 55)\r\n2016-08-11 00:36:13,111 [ search_worker_0][        models][    INFO] Upserted 0 pokemon, 548 pokestops, and 17 gyms\r\n2016-08-11 00:36:16,761 [ search_worker_0][        search][    INFO] Search step 7 beginning (queue size is 54)\r\n2016-08-11 00:36:18,660 [ search_worker_1][        models][    INFO] Upserted 2 pokemon, 506 pokestops, and 15 gyms\r\n2016-08-11 00:36:20,766 [ search_worker_1][        search][    INFO] Search step 8 beginning (queue size is 53)\r\n2016-08-11 00:36:23,748 [ search_worker_0][        models][    INFO] Upserted 0 pokemon, 526 pokestops, and 16 gyms\r\n```\r\n\r\n## Possible Solution\r\nPerhaps the login request counts to the request limit and it needs to pause some (10?) seconds after login before starting the first search step.\r\nOr the first search step starts before access token is successfully received?\r\n\r\n## Steps to Reproduce (for bugs)\r\nStart scanning and check the log directly after login was successful\r\n\r\n## Your Environment\r\n<!--- Include as many relevant details about the environment you experienced the bug in -->\r\n* Version used: Commit 5ac7627\r\n* Environment name and version: Python 2.7"},"comment":{"url":"https://api.github.com/repos/PokemonGoMap/PokemonGo-Map/issues/comments/239088261","html_url":"https://github.com/PokemonGoMap/PokemonGo-Map/issues/462#issuecomment-239088261","issue_url":"https://api.github.com/repos/PokemonGoMap/PokemonGo-Map/issues/462","id":239088261,"user":{"login":"Slivo-fr","id":10325988,"avatar_url":"https://avatars.githubusercontent.com/u/10325988?v=3","gravatar_id":"","url":"https://api.github.com/users/Slivo-fr","html_url":"https://github.com/Slivo-fr","followers_url":"https://api.github.com/users/Slivo-fr/followers","following_url":"https://api.github.com/users/Slivo-fr/following{/other_user}","gists_url":"https://api.github.com/users/Slivo-fr/gists{/gist_id}","starred_url":"https://api.github.com/users/Slivo-fr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Slivo-fr/subscriptions","organizations_url":"https://api.github.com/users/Slivo-fr/orgs","repos_url":"https://api.github.com/users/Slivo-fr/repos","events_url":"https://api.github.com/users/Slivo-fr/events{/privacy}","received_events_url":"https://api.github.com/users/Slivo-fr/received_events","type":"User","site_admin":false},"created_at":"2016-08-11T07:10:13Z","updated_at":"2016-08-11T07:10:13Z","body":"Same issue there"}}
{"actor":{"display_login":"Slivo-fr"}}