Skip to content

Fatal error: Uncaught Exception: Retrieved a unknown status code 100 #175

Description

@hwiVeloper

I have a question.

When I use getPokeBank() functionn, I get the error below.

Fatal error: Uncaught Exception: Retrieved a unknown status code 100
in /vendor/nicklasw/pkm-go-api/src/Handlers/RequestHandler.php:163

Stack trace:
  #0 /vendor/nicklasw/pkm-go-api/src/Services/Request/InventoryRequestService.php(27):
    NicklasW\PkmGoApi\Handlers\RequestHandler->handle(Object(NicklasW\PkmGoApi\Requests\GetInventoryRequest))
  #1 /vendor/nicklasw/pkm-go-api/src/Api/Player/Inventory.php(69):
    NicklasW\PkmGoApi\Services\Request\InventoryRequestService->getInventory()
  #2 /vendor/nicklasw/pkm-go-api/src/Api/Procedure.php(52):
    NicklasW\PkmGoApi\Api\Player\Inventory->update() #3 /test.php(61):

NicklasW\PkmGoApi\Api\Procedure->__call('getPokeBank', Array) #4 {main} thrown
  in /vendor/nicklasw/pkm-go-api/src/Handlers/RequestHandler.php on line 163

How can I solve this error?

my source code is..

// Authentication via Google user credentials

$manager = Factory::create($config);

$manager->addListener(function ($event, $value) {
  if ($event === Manager::EVENT_ACCESS_TOKEN) {
    $accessToken = $value;
  }
});

// Initialize the pokemon go application
$application = new ApplicationKernel($manager);

$pokemonGoApi = $application->getPokemonGoApi();

$journal = $pokemonGoApi->getJournal();

$inventory = $pokemonGoApi->getInventory();

$pokeBank = $inventory->getPokeBank(); // At this code, There is the error

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions