Pokemon-GO-node-api icon indicating copy to clipboard operation
Pokemon-GO-node-api copied to clipboard

self.GetApiEndpoint doesn't work

Open invisyi opened this issue 9 years ago • 3 comments

In the self.GetApiEndpoint function (poke.io.js) the req variable :

var req = [new RequestEnvelop.Requests(2), new RequestEnvelop.Requests(126), new RequestEnvelop.Requests(4), new RequestEnvelop.Requests(129), new RequestEnvelop.Requests(5)];

sends:

{ type: 2, message: null },
{ type: 126, message: null },
{ type: 4, message: null },
{ type: 129, message: null },
{ type: 5, message: null } ]

invisyi avatar Aug 29 '16 08:08 invisyi

I'm having the same issue, not sure why, it works on my machine but not on an AWS host.

renatomserra avatar Aug 31 '16 16:08 renatomserra

So that request actually looks ok, comparing to the one sent from my laptop which is working.

But i found that Niantec is sending this back as the body response:

`

403 Forbidden

403 Forbidden


nginx/1.11.1
`

Are you using AWS by any chance? could be that they banned their IPs

https://www.reddit.com/r/TheSilphRoad/comments/4vjv1j/ive_figured_out_what_niantics_plan_is_with_the/d5zh65t

renatomserra avatar Aug 31 '16 22:08 renatomserra

I use codeAnywhere, i thinks it's all cloud IDE. (https://github.com/Armax/Pokemon-GO-node-api/issues/188)

invisyi avatar Sep 01 '16 13:09 invisyi