Closed necm1 closed 8 years ago
profile
is undefined. Most likely from servers being down or unstable.
I recommend you use "return" to stop the execution if error occurred
if(err) {
return log.error(err);
}
or put the success block of code inside "else".
The error can be with server, they could be down. Other usual problem with Google login is the two factor authentication. If you have two factor authentication enabled, you can create an app password (https://support.google.com/mail/answer/185833?hl=en).
Also, I have developed a simple web bot/client (https://github.com/segura2010/NodeJS-PokemonGo-BotAndClient). It could help you to use the API or get ideas :) (sorry for the spam..)
@ALawliet yeah.. I think they're down. @segura2010 Thank you very much. I'll take a look on your project.
I've no ideas what to do now. I'm still getting undefined. I don't know which variable is undefined. I think, I can't connect to the Google Auth Servers (not sure). I also getting 403 error from server (maybe wrong User-Agent?)..
I just get undefined... + 403 Server Error. But when I run Rocket C# Bot, everything works fine.
Hey, does anybody know how to get user level?
@Armax would be awesome, if you can close it. For people w/ the same problem: https://github.com/Armax/Pokemon-GO-node-api/issues/94
EDIT
PokemonGO Servers down? :100:
Hello! I'm actually trying to create a simple web based Bot, and yeah. It's a little bit strange, I don't know what I did wrong. That's a part of my "class":
and that's what I'm getting in my console output:
and that's how I create the new instance:
Why I'm getting 'undefined' and btw. what's undefined? The player object? Regards,