NicklasWallgren / PokemonGoAPI-PHP

Pokemon Go API PHP library
BSD 2-Clause "Simplified" License
130 stars 51 forks source link

Error during getStats #110

Closed Raphaelbm closed 7 years ago

Raphaelbm commented 8 years ago

Hello !

I don't know why but I have this error with my PTC account (test account):

Warning: get_resource_type() expects parameter 1 to be resource, null given in /home/pokedev/pokemon-dev/api/vendor/nicklasw/pogoprotos-php/src/protocolbuffers.inc.php on line 54 fp must be a string or file resource

I think this line of my code make that error:

$playerStats = $inventory->getItems()->getStats();

I made the same test with an other PTC account and a Google account and that works perfectly !

Thanks you again ^^

Raphaelbm commented 8 years ago

I don't know but all examples don't work... I think it's why I made a git pull

NicklasWallgren commented 8 years ago

@Raphaelbm The account is probably banned, I'll add a check for this at some point.

Raphaelbm commented 8 years ago

@NicklasWallgren Ok, I can't play with this account... But there is a message like "Problem with the server..."

f2008305 commented 8 years ago

that account is banned. it happened also to a my test account.

NicklasWallgren commented 7 years ago

Resolved.