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

Getting null/rpc #268

Open
csfragsta opened this issue Jan 21, 2018 · 0 comments
Open

Getting null/rpc #268

csfragsta opened this issue Jan 21, 2018 · 0 comments

Comments

@csfragsta
Copy link

csfragsta commented Jan 21, 2018

[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);

    });
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

1 participant