Closed br0kenb1nary closed 8 years ago
Which version are you using? Which code are you running?
I am using the latest commit and testing using RetrievePlayerProfile.php with correct credentials.
@damiendarko What type of account is it, PTC or Google? Have you used the account in-game since earlier?
Google. Yes I have used the account both before and after. I even tried logging out of the account and waiting an hour before trying the script to avoid any "suspicious" login activity issues with Google.
Have you updated the dependencies?
What do get if you run the following snippet:
var_dump(PHP_INT_SIZE);
I have updated all dependencies. I get int(8) on the dump.
I'm experiencing the same problem too.
Can you replicate the issue in the latest release?
Same issue exists.
Logging in with the incorrect details does show an error so I know the wire format error comes post login as it only show with the correct credentials.
Additionally (not sure if is of any use) but PHP throws a 500 error unless error_reporting(E_ALL); ini_set('display_errors', 'on'); is added a the top of the script.
Even with the error script removed, although a 500 error is thrown, there is nothing in the apache log related to the script.
@damiendarko Have you tried to login using auth code, refresh token?
@NicklasWallgren
Issue still persists after pulling the latest commit:
Fatal error: Uncaught Exception: Incorrect wire format for field 7, expected: 2 got: 4 in /var/www/html/scrup/public/pogo/vendor/nicklasw/pogoprotos-php/src/POGOProtos/Networking/Envelopes/ResponseEnvelope.php:80 Stack trace: #0 /var/www/html/scrup/public/pogo/src/Handlers/RequestHandler.php(255): POGOProtos\Networking\Envelopes\ResponseEnvelope->read(Resource id #23) #1 /var/www/html/scrup/public/pogo/src/Handlers/RequestHandler.php(240): NicklasW\PkmGoApi\Handlers\RequestHandler->unmarshall(Object(GuzzleHttp\Psr7\Response)) #2 /var/www/html/scrup/public/pogo/src/Handlers/RequestHandler.php(116): NicklasW\PkmGoApi\Handlers\RequestHandler->call(Object(POGOProtos\Networking\Envelopes\RequestEnvelope)) #3 /var/www/html/scrup/public/pogo/src/Services/Request/PlayerRequestService.php(20): NicklasW\PkmGoApi\Handlers\RequestHandler->handle(Object(NicklasW\PkmGoApi\Requests\GetPlayerRequest)) #4 /var/www/html/scrup/public/pogo/src/Api/Player/Profile.php(37): NicklasW\PkmGoApi\Services\Request\PlayerRequestService->getPlayer() #5 in /var/www/html/scrup/public/pogo/vendor/nicklasw/pogoprotos-php/src/POGOProtos/Networking/Envelopes/ResponseEnvelope.php on line 80
xdebug:
Just a follow up. Enabled HTTP error reporting for Guzzle and it shows a 403 forbidden error on both PTC and Google login
Trying method referenced in issue 2265
Proxied location. Fixed.
hi @damiendarko can you link the issue? seems issue #2265 doesn't exist
I just want to share some information,
On my part, the reason why I'm experiencing this problem is because I'm using Digital Ocean as my VPS which its IPs are blacklisted. @d3vilsn0w mentioned this in #76.
The workaround would be to use Proxy instead. You can refer to #83 on how to set proxy.
Not sure why but I keep receiving the following fatal error
Fatal error: Uncaught exception 'Exception' with message 'Incorrect wire format for field 7, expected: 2 got: 4' in the ResponseEnvelope.php file
I have tried changing PHP versions from 5.6 to 7 and I have the BCMath and GMP libraries installed.
Any ideas?
Cheers