Open DaRealGunko opened 8 years ago
+1 The API works fine when running on mac locally. But when I try to run it on AWS lambda, I had that exact same error.
I added two console.logs in the poke.io.js file, and it seems "ResponseEnvelop.decode(body)" didn't work.
var f_ret;
try {
f_ret = ResponseEnvelop.decode(body);
} catch (e) {
console.log("e", e); // <----------------------------
console.log("e.decoded", e.decoded); // <----------------------------
if (e.decoded) {
// Truncated
console.log("caught error", e);
console.warn(e);
f_ret = e.decoded; // Decoded message with missing required fields
}
}
Logs:
e: [Error: Illegal group end indicator for Message .ResponseEnvelop: 7 (not a group)]
e.decoded : undefined
+1 exact same error - also slightly concerned about the lack of retry limit
Very interesting note about AWS lambda - I'm having this error when I have it hosted on a Vultr instance (hosting service)
Possibly Niantic is blocking any requests from known hosting services to reduce load and make it harder for people to mass bot?
I'm experimenting the same issue and I'm not usi g AWS, just my raspberry at local.. Any ideas of how to solve It?
I was using https://www.openshift.com/
Same problem here. Someone could deal with it? I'm hosting in Heroku
Dumped the response body when hosting on DigitalOcean, looks like we're getting 403'd.
<html>
<head><title>403 Forbidden</title></head>
<body bgcolor="white">
<center><h1>403 Forbidden</h1></center>
<hr><center>nginx/1.11.1</center>
</body>
</html>
@ChristopherLayton I end up deploying it in Digital Ocean, in a MeanStack application that they have. It worked like a charm :)
@ChristopherLayton, It doesn't work for me in Digital Ocean with MeanStack application, what is your node version ? thanks
@marvi14 Giving it a shot, I'll report my findings!
@marvi14 Tried with a MEANStack image located in NY, same forbidden response. Which region did you select?
+1 but run from my laptop (no concern of IP banning)
HERE:
so the code in is permanent loop here :