NicklasWallgren / PokemonGoAPI-PHP

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

Retrieved a invalid response. Response code: '403' #176

Open gracefullight opened 7 years ago

gracefullight commented 7 years ago

Hi NicklasW

When I tested it on localhost it worked fine, but when I upload it to AWS, I get a 403 error.


object(NicklasW\PkmGoApi\Handlers\RequestHandler\Exceptions\ResponseException)#337 (7) { ["message":protected]=> string(50) "Retrieved a invalid response. Response code: '403'" ["string":"Exception":private]=> string(0) "" ["code":protected]=> int(0) ["file":protected]=>

Is there a way to resolve this error? just change to nodejs api?

NicklasWallgren commented 7 years ago

It's probably due to AWS IP ban, try using a proxy.

gracefullight commented 7 years ago

thanks for your advice

I solved it with proxy example.

this site helps others. free proxy list