Getting null/rpc
csfragsta opened this issue · 0 comments
csfragsta commented
[i] Received API Endpoint: https://null/rpc
[i] Current location: Times Square
[i] lat/long/alt: : -33.98141 151.23606 0
..\poke.js:35
if (err) throw err;
I am trying to run the catch pokemon example listed on this github page. and I am getting following error.
Error In the Following method:
a.GetProfile((err, profile) => {
if (err) throw err; // ERROR COMES FROM HERE
console.log('1[i] Username: ' + profile.username);
console.log('1[i] Poke Storage: ' + profile.poke_storage);
console.log('1[i] Item Storage: ' + profile.item_storage);
let poke = 0;
if (profile.currency[0].amount) {
poke = profile.currency[0].amount;
}
console.log('1[i] Pokecoin: ' + poke);
console.log('1[i] Stardust: ' + profile.currency[1].amount);
setInterval(() => {
a.Heartbeat((err, hb) => {
if (err) {
console.log(err);
}
let texts = '';
for (var i = hb.cells.length - 1; i >= 0; i--) {
if (hb.cells[i].NearbyPokemon[0]) {
//console.log(a.pokemonlist[0])
let pokemon = a.pokemonlist[parseInt(hb.cells[i].NearbyPokemon[0].PokedexNumber) - 1];
console.Log('1 [+] There IS a' + pokemon.Name + '. Near');
// if ask bite Toka Webhook around here Slack notification Toka also I can afford it.
}
}
});
}, 5000);
});