Skip to content

Getting null/rpc #268

Description

@csfragsta

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

    });

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions