brianzhouzc / RocketBot

An automated Pokémon Go Bot
GNU General Public License v3.0
564 stars 315 forks source link

Exception no more active poketops #1109

Closed Ultima123 closed 8 years ago

Ultima123 commented 8 years ago

Happens when there are no more active pokestops on route. (small route, all timeouted)

[21:45:25] Pokemon Servers might be offline / unstable. Trying again...
[21:45:26] Error: System.InvalidOperationException: Sequence contains no elements
   at System.Linq.Enumerable.First[TSource](IEnumerable`1 source)
   at PokemonGo.RocketBot.Logic.Utils.RouteOptimizeUtil.FindNn(IEnumerable`1 pokeStops, Double cLatitude, Double cLongitude) in C:\Users\Brian\Documents\Visual Studio 2015\Projects\RocketBot\PokemonGo.RocketBot.Logic\Utils\RouteOptimizeUtil.cs:line 109
   at PokemonGo.RocketBot.Logic.Utils.RouteOptimizeUtil.Optimize(FortData[] pokeStops, Double lat, Double lng) in C:\Users\Brian\Documents\Visual Studio 2015\Projects\RocketBot\PokemonGo.RocketBot.Logic\Utils\RouteOptimizeUtil.cs:line 18
   at PokemonGo.RocketBot.Logic.Tasks.FarmPokestopsTask.<Execute>d__3.MoveNext() in C:\Users\Brian\Documents\Visual Studio 2015\Projects\RocketBot\PokemonGo.RocketBot.Logic\Tasks\FarmPokestopsTask.cs:line 53
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
   at PokemonGo.RocketBot.Logic.State.FarmState.<Execute>d__0.MoveNext() in C:\Users\Brian\Documents\Visual Studio 2015\Projects\RocketBot\PokemonGo.RocketBot.Logic\State\FarmState.cs:line 66
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at PokemonGo.RocketBot.Logic.State.StateMachine.<Start>d__3.MoveNext() in C:\Users\Brian\Documents\Visual Studio 2015\Projects\RocketBot\PokemonGo.RocketBot.Logic\State\StateMachine.cs:line 56
brianzhouzc commented 8 years ago

did you enter google api key?

Ultima123 commented 8 years ago

I used the ptc. Its on beta 2 btw. Dont know if it was fixed. On Aug 22, 2016 10:00 PM, "Brian" notifications@github.com wrote:

did you enter google api key?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/TheUnnameOrganization/RocketBot/issues/1109#issuecomment-241531473, or mute the thread https://github.com/notifications/unsubscribe-auth/AUM2Imr92pKlKGTLCV9oLLHhIAI549prks5qif_ogaJpZM4JqPnQ .