-
Notifications
You must be signed in to change notification settings - Fork 198
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
API Endpoint sometimes is null #112
Comments
I got this sometimes, but i think was my modifications. |
This is my implementation of the api. var Go = {
Status: GO_STATUS_DISCONNECTED,
Instance: null,
Connect: function(type, user, password, location){
if(this.Status == GO_STATUS_CONNECTED || this.Status == GO_STATUS_CONNECTING){
//TODO handle connected/connecting status
return;
}
this.Instance = new PokemonGO.Pokeio();
this.Status = GO_STATUS_CONNECTING;
this.Instance.init(user,password,location,type,function(error){
if(error){
Go.Status = GO_STATUS_DISCONNECTED;
throw error;
}else{
Go.Status = GO_STATUS_CONNECTED;
}
});
},
FetchPokemons: function(){
if(this.Status == GO_STATUS_CONNECTED){
this.Instance.Heartbeat(function (err, hb) {
// ........
}
}
}
} |
we are fixing the GetApiEndpoint function, the https://null/rpc is caused by niantic's servers problem |
@Armax Please reopen the issue because is still not fixed. |
|
@gallexme I know that. But it should at least be handled and throw an error when it happens. |
Hello, sometimes i get
[i] Received API Endpoint: https://null/rpc
I don't know how to reproduce it or what could be the cause, but it should be handled.
Currently when it happens, the server crashes on Heartbeat.
The text was updated successfully, but these errors were encountered: