brianzhouzc / RocketBot

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

Error: System.InvalidOperationException: Sequence contains no elements #1159

Open lessthandan623 opened 8 years ago

lessthandan623 commented 8 years ago

I received a softban earlier this morning. I am able to log into the app without an issue, so I have not received a ban. I recently changed locations within NYC. I also updated my Google API Key and still having the issue:

[18:45:17] Pokemon Servers might be offline / unstable. Trying again... [18:45:18] 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

Thanks!

ayylamao commented 8 years ago

wait a few hours and it'll be gone