brianzhouzc / RocketBot

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

Invalid operation exception #1118

Open praeteria opened 7 years ago

praeteria commented 7 years ago

Had this error in the beta5, was told to use beta6, still have the same error. Seems to be going for C: user named Brian, instead of taking the folder where the bot actually is.

[13:19:54] Error: System.InvalidOperationException: Reeks bevat geen elementen bij System.Linq.Enumerable.First[TSource](IEnumerable1 source) bij 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:regel 107 bij 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:regel 16 bij PokemonGo.RocketBot.Logic.Tasks.FarmPokestopsTask.d3.MoveNext() in C:\Users\Brian\Documents\Visual Studio 2015\Projects\RocketBot\PokemonGo.RocketBot.Logic\Tasks\FarmPokestopsTask.cs:regel 58 --- Einde van stacktracering vanaf vorige locatie waar uitzondering is opgetreden --- bij System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) bij System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) bij System.Runtime.CompilerServices.TaskAwaiter.GetResult() bij PokemonGo.RocketBot.Logic.State.FarmState.d0.MoveNext() in C:\Users\Brian\Documents\Visual Studio 2015\Projects\RocketBot\PokemonGo.RocketBot.Logic\State\FarmState.cs:regel 66 --- Einde van stacktracering vanaf vorige locatie waar uitzondering is opgetreden --- bij System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) bij System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) bij System.Runtime.CompilerServices.TaskAwaiter`1.GetResult() bij PokemonGo.RocketBot.Logic.State.StateMachine.d__3.MoveNext() in C:\Users\Brian\Documents\Visual Studio 2015\Projects\RocketBot\PokemonGo.RocketBot.Logic\State\StateMachine.cs:regel 56

Ultima123 commented 7 years ago

Try logging in on your phone, if that doesn't work then you are banned.

praeteria commented 7 years ago

beta3 works just fine, so it's not a ban. Only have this issue in beta4 and up.

brianzhouzc commented 7 years ago

Because you just won't enter that god dam Google API key

praeteria commented 7 years ago

I have enterred that goddamn API key, i'm not a complete retard.