brianzhouzc / RocketBot

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

Sequence Contains No Elements #1152

Open ayylamao opened 8 years ago

ayylamao commented 8 years ago

Immediatelly after logging in i get this, what is the problem?

22:51:24 Pokemon Servers might be offline / unstable. Trying again... 22:51:25 Error: System.InvalidOperationException: Sequence contains no elements at System.Linq.Enumerable.First[TSource](IEnumerable1 source) at PokemonGo.RocketBot.Logic.Utils.RouteOptimizeUtil.FindNn(IEnumerable1 pokeStops, Double cLatitude, Double cLongitude) in C:\Users\Brian\Documents\Visual Studio 2015\Projects\RocketBot\PokemonGo.RocketBot.Logic\Utils\RouteOptimizeUtil.cs:line 107 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 16 at PokemonGo.RocketBot.Logic.Tasks.FarmPokestopsTask.d3.MoveNext() in C:\Users\Brian\Documents\Visual Studio 2015\Projects\RocketBot\PokemonGo.RocketBot.Logic\Tasks\FarmPokestopsTask.cs:line 58 --- 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.d0.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.d__3.MoveNext() in C:\Users\Brian\Documents\Visual Studio 2015\Projects\RocketBot\PokemonGo.RocketBot.Logic\State\StateMachine.cs:line 56

ayylamao commented 8 years ago

nvm it just fixed itself, waited a few hours and its back to normal