Code Monkey home page Code Monkey logo

Comments (15)

NicklasWallgren avatar NicklasWallgren commented on September 15, 2024

What type of account are you using? PTC or Google?

from pokemongoapi-php.

sensityy avatar sensityy commented on September 15, 2024

Tried both

from pokemongoapi-php.

NicklasWallgren avatar NicklasWallgren commented on September 15, 2024

The invalid token error, is that related to the PTC account? Could to be the same issue as #7

"I just had this issue for ages on a brand new PTC account. I'd actually never logged in on the phone before, and when I attempted to I got the same error on my phone. After another try it worked but I still had to accept the license agreement and choose my character, so I'm not sure if it was just a server issue or it was because I hadn't logged in yet, but the error has gone now"

from pokemongoapi-php.

sensityy avatar sensityy commented on September 15, 2024

it happen on both AUTHENTICATION_TYPE_PTC is the right for PTC right?

from pokemongoapi-php.

NicklasWallgren avatar NicklasWallgren commented on September 15, 2024

Exactly, have you used the account in the app before? Check @tomhash response in #7

from pokemongoapi-php.

sensityy avatar sensityy commented on September 15, 2024

yes, both GMAIL & PTC.. Hmm

from pokemongoapi-php.

NicklasWallgren avatar NicklasWallgren commented on September 15, 2024

And the issue still remains in the latest release? I added a temporary latitude and longitude, but it should not make any difference.

from pokemongoapi-php.

sensityy avatar sensityy commented on September 15, 2024

I just downloaded the new version, not it's 30 second timeout

from pokemongoapi-php.

paoloalby avatar paoloalby commented on September 15, 2024

I have the same issue. Tried with both my account, PTC and Google, and I get this error

user@NAS:/volume1/web/_private/PokemonGoAPI-PHP-master/examples$ php RetrievePlayerProfile.php
PHP Fatal error: Uncaught exception 'NicklasW\PkmGoApi\Handlers\RequestHandler\Exceptions\AuthenticationException' with message 'Invalid authentication token provided' in /volume1/web/_private/PokemonGoAPI-PHP-master/src/Handlers/RequestHandler.php:90
Stack trace:
#0 /volume1/web/_private/PokemonGoAPI-PHP-master/src/Handlers/RequestHandler.php(98): NicklasW\PkmGoApi\Handlers\RequestHandler->handle(Object(NicklasW\PkmGoApi\Requests\GetPlayerRequest))
#1 /volume1/web/_private/PokemonGoAPI-PHP-master/src/Services/Request/PlayerRequestService.php(20): NicklasW\PkmGoApi\Handlers\RequestHandler->handle(Object(NicklasW\PkmGoApi\Requests\GetPlayerRequest))
#2 /volume1/web/_private/PokemonGoAPI-PHP-master/src/Api/Player/Profile.php(37): NicklasW\PkmGoApi\Services\Request\PlayerRequestService->getPlayer()
#3 /volume1/web/_private/PokemonGoAPI-PHP-master/src/Api/Player/Profile.php(25): NicklasW\PkmGoApi\Api\Player\Profile->update()
#4 /volume1/web/_private/PokemonGoAPI-PHP-master/examples/RetrievePlayerProfile.php(27): NicklasW\PkmGoApi in /volume1/web/_private/PokemonGoAPI-PHP-master/src/Handlers/RequestHandler.php on line 90

from pokemongoapi-php.

NicklasWallgren avatar NicklasWallgren commented on September 15, 2024

It would be helpful if you could send the log file to [email protected]

Thanks.

from pokemongoapi-php.

NicklasWallgren avatar NicklasWallgren commented on September 15, 2024

I'm still working on this, hopefully we will find a solution soon. A big thanks to @paoloalby for helping me out with the debugging.

from pokemongoapi-php.

NicklasWallgren avatar NicklasWallgren commented on September 15, 2024

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).

from pokemongoapi-php.

TacoBytes avatar TacoBytes commented on September 15, 2024

This issue is still being observed. Whenever I enter my gmail address and password in the examples, I get the Fatal Error below:

Fatal error: Uncaught NicklasW\PkmGoApi\Handlers\RequestHandler\Exceptions\AuthenticationException: Invalid authentication token provided in /homepages/26/d603489614/htdocs/pokemon/juan/PokemonGoAPI-PHP/src/Handlers/RequestHandler.php:113 Stack trace: #0 /homepages/26/d603489614/htdocs/pokemon/juan/PokemonGoAPI-PHP/src/Handlers/RequestHandler.php(124): NicklasW\PkmGoApi\Handlers\RequestHandler->handle(Object(NicklasW\PkmGoApi\Requests\GetInventoryRequest)) #1 /homepages/26/d603489614/htdocs/pokemon/juan/PokemonGoAPI-PHP/src/Services/Request/InventoryRequestService.php(20): NicklasW\PkmGoApi\Handlers\RequestHandler->handle(Object(NicklasW\PkmGoApi\Requests\GetInventoryRequest)) #2 /homepages/26/d603489614/htdocs/pokemon/juan/PokemonGoAPI-PHP/src/Api/Player/Inventory.php(129): NicklasW\PkmGoApi\Services\Request\InventoryRequestService->getInventory() #3 /homepages/26/d603489614/htdocs/pokemon/juan/PokemonGoAPI-PHP/src/Api/Player/Inventory.php(115): NicklasW\PkmGoApi\Api\Player\Inventory->update() #4 /homepages/26/d603489614 in /homepages/26/d603489614/htdocs/pokemon/juan/PokemonGoAPI-PHP/src/Handlers/RequestHandler.php on line 113

from pokemongoapi-php.

NicklasWallgren avatar NicklasWallgren commented on September 15, 2024

@jibarra-xx Did you disable the 64-bit check?

from pokemongoapi-php.

TacoBytes avatar TacoBytes commented on September 15, 2024

@NicklasWallgren yes, this was the reason why. Forgot to get back to you on this issue.

from pokemongoapi-php.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.