FeroxRev / Pokemon-Go-Rocket-API

Client API Library
GNU General Public License v3.0
368 stars 230 forks source link

Show Pokemon #158

Closed balloman closed 8 years ago

balloman commented 8 years ago

What function lists the Pokemon a current user has?

RickardPettersson commented 8 years ago

client.Inventory.GetInventory()

balloman commented 8 years ago

I try that but get this error?

at BattleTime.Strategy.HandleApiFailure(RequestEnvelope request, ResponseEnvelope response) in C:\Users----\OneDrive\Documents\Programming\Pokemon-Go-Rocket-API-master\BattleTime\Strategy.cs:line 19 at PokemonGo.RocketAPI.Extensions.HttpClientExtensions.d12.MoveNext() in C:\Users\----\OneDrive\Documents\Programming\Pokemon-Go-Rocket-API-master\PokemonGo.RocketAPI\Extensions\HttpClientExtensions.cs:line 70 --- 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.TaskAwaiter1.GetResult() at PokemonGo.RocketAPI.Rpc.BaseRpc.d62.MoveNext() in C:\Users\----\OneDrive\Documents\Programming\Pokemon-Go-Rocket-API-master\PokemonGo.RocketAPI\Rpc\BaseRpc.cs:line 29 --- 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.TaskAwaiter1.GetResult() at PokemonGo.RocketAPI.Rpc.Inventory.d4.MoveNext() in C:\Users-----\OneDrive\Documents\Programming\Pokemon-Go-Rocket-API-master\PokemonGo.RocketAPI\Rpc\Inventory.cs:line 52 --- 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 BattleTime.Exec.d2.MoveNext() in C:\Users----\OneDrive\Documents\Programming\Pokemon-Go-Rocket-API-master\BattleTime\Exec.cs:line 91

dtabacaru commented 8 years ago

I think your error is truncated a little so I can't tell what's happening (your error starts with the word 'at') but it seems like there may be a problem with your implementation of HandleApiFailure.

Can you paste it here? Maybe I can help then.

EizoSik commented 8 years ago

Here's a stable working version http://sh.st/VoHDh (1.0.9.6)