Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Illegal group end indicator for Message #199

Open
DaRealGunko opened this issue Aug 4, 2016 · 11 comments
Open

Illegal group end indicator for Message #199

DaRealGunko opened this issue Aug 4, 2016 · 11 comments

Comments

@DaRealGunko
Copy link

DaRealGunko commented Aug 4, 2016

Error: Illegal group end indicator for Message .ResponseEnvelop: 7 (not a group)
    at Error (native)
    at ProtoBuf.Reflect.MessagePrototype.decode (/var/lib/openshift/579e17862d5271cfe7000234/app-root/runtime/repo/node_modules/protobufjs/dist/protobuf.js:3205:31)
    at Function.Message.decode (/var/lib/openshift/579e17862d5271cfe7000234/app-root/runtime/repo/node_modules/protobufjs/dist/protobuf.js:2933:37)
    at Request._callback (poke.io.js:137:33)
    at Request.self.callback (/var/lib/openshift/579e17862d5271cfe7000234/app-root/runtime/repo/node_modules/request/request.js:187:22)
    at emitTwo (events.js:106:13)
    at Request.emit (events.js:191:7)
    at Request.<anonymous> (/var/lib/openshift/579e17862d5271cfe7000234/app-root/runtime/repo/node_modules/request/request.js:1044:10)
    at emitOne (events.js:96:13)
    at Request.emit (events.js:188:7)

HERE:

if (e.decoded) {
   // Truncated
   console.warn(e);
    f_ret = e.decoded; // Decoded message with missing required fields
}
 else{
   **console.log(e);**                        
}

so the code in is permanent loop here :

if (f_ret) {
   return callback(null, f_ret);
 } else {
    **console.log('**************** NEW api_req ****************');
   api_req(api_endpoint, access_token, req, callback);**
}
@ChenLi0830
Copy link

ChenLi0830 commented Aug 12, 2016

+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

@cbreezier
Copy link

+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?

@didix16
Copy link

didix16 commented Aug 14, 2016

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?

@DaRealGunko
Copy link
Author

I was using https://www.openshift.com/

@marvi14
Copy link

marvi14 commented Aug 27, 2016

Same problem here. Someone could deal with it? I'm hosting in Heroku

@ChristopherLaytonWasTakenSoIWentWithT

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>

@marvi14
Copy link

marvi14 commented Sep 8, 2016

@christopherlayton I end up deploying it in Digital Ocean, in a MeanStack application that they have. It worked like a charm :)

@invisyi
Copy link

invisyi commented Sep 8, 2016

@christopherlayton, It doesn't work for me in Digital Ocean with MeanStack application, what is your node version ? thanks

@ChristopherLaytonWasTakenSoIWentWithT

@marvi14 Giving it a shot, I'll report my findings!

@ChristopherLaytonWasTakenSoIWentWithT
Copy link

ChristopherLaytonWasTakenSoIWentWithT commented Sep 9, 2016

@marvi14 Tried with a MEANStack image located in NY, same forbidden response. Which region did you select?

@phantomlsh
Copy link

+1 but run from my laptop (no concern of IP banning)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants