PokeGOAPI-Java icon indicating copy to clipboard operation
PokeGOAPI-Java copied to clipboard

Got a unexpected http code : 403 when loggin (account not banned)

Open vodoi1432 opened this issue 10 years ago • 5 comments

Description: I have a dynamic web project. It's okay if run on my pc with tomcat 7.0. Servlet can login pokemon as ptc, get info and send response to client. But when i host it on openshift. it can't login pokemon. I always receive a AsyncPokemonGoException: Unknown exception occurred. java.lang.RuntimeException: java.util.concurrent.ExecutionException: com.pokegoapi.exceptions.RemoteServerException: Got a unexpected http code : 403

Expected behavior: [What should happen?]

Actual behavior: [What actually happens]

Stacktrace (If it's a crash): http://pastebin.com/JwKExMYV

Version: 0.4.0

vodoi1432 avatar Aug 19 '16 09:08 vodoi1432

Thats unrelated to this library. The niantic server doesn´t accept the connection.

FabianTerhorst avatar Aug 19 '16 09:08 FabianTerhorst

do you have any idea for me to make it work :(

vodoi1432 avatar Aug 19 '16 09:08 vodoi1432

no sorry, i have never used tomcat 7.0.

FabianTerhorst avatar Aug 19 '16 09:08 FabianTerhorst

You're getting 403's because Niantic has IP blocked Openshift (entirely).

https://github.com/cyraxx/pogobuf/wiki/Blocked-server-ISPs

broach avatar Aug 19 '16 19:08 broach

@broach Thanks for answering.

FabianTerhorst avatar Aug 19 '16 19:08 FabianTerhorst