NicklasWallgren / PokemonGoAPI-PHP

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

Not work auth with Google and PTC #18

Closed efor74 closed 8 years ago

efor74 commented 8 years ago

With PTC error: " PHP Fatal error: Uncaught exception 'Exception' with message 'write_varint(): Error writing byte' in PokemonGoAPI-PHP/includes/protocolbuffers.inc.php:642 Stack trace:

0 PokemonGoAPI-PHP/res/POGOProtos/Networking/Envelopes/RequestEnvelope.php(330): Protobuf::write_varint(Resource id #153, 8145806132888207460)

1 PokemonGoAPI-PHP/includes/protocolbuffers.inc.php(103): POGOProtos\Networking\Envelopes\RequestEnvelope->write(Resource id #153)

2 PokemonGoAPI-PHP/src/Handlers/RequestHandler.php(160): ProtobufMessage->toProtobuf()

3 ... in PokemonGoAPI-PHP/includes/protocolbuffers.inc.php on line 642

"

With Google error: " PHP Fatal error: Cannot use object of type stdClass as array in PokemonGoAPI-PHP/src/Authenticators/GoogleOauth/Parsers/Results/AuthenticationTokenResult.php on line 46 " image

What the problem?

NicklasWallgren commented 8 years ago

It would be helpful if you could send the log file to nicklas.wallgren@gmail.com

Thanks.

efor74 commented 8 years ago

Hello Log send

Thanks

NicklasWallgren commented 8 years ago

Alright, the problem is probably due to PHP running as 32-bit. At this time the protocol buffer parser requires PHP running as 64-bit (or maybe PHP 7).

efor74 commented 8 years ago

It is bad

NicklasWallgren commented 8 years ago

What type of error do you get if you run the latest version?

efor74 commented 8 years ago

After the upgrade, it worked! Thank you!