tehp / OpenPoGoWeb

Web View for OpenPoGoBot
77 stars 58 forks source link

Having issues with userdata.js #50

Closed endeavor7 closed 8 years ago

endeavor7 commented 8 years ago

Account is a google account. Let's call it ABC123@gmail.com.

In userdata.js, I modified line 3 to try both:

var users = [ABC123@gmail.com];

and

var users = ["ABC123@gmail.com"];

I also included my API key.

When running python -m SimpleHTTPServer, I get:

127.0.0.1 - - [25/Jul/2016 20:45:47] code 404, message File not found 127.0.0.1 - - [25/Jul/2016 20:45:47] "GET /catchable-username.json HTTP/1.1" 404 - 127.0.0.1 - - [25/Jul/2016 20:45:47] code 404, message File not found 127.0.0.1 - - [25/Jul/2016 20:45:47] "GET /location-username.json HTTP/1.1" 404 -

I looked in the main.js and even commented out the lines where it looks for

loadJSON('location-' + users[i] + '.json', trainerFunc, errorFunc, i);

and hardcoded

loadJSON('location-ABC123@gmail.com.json', trainerFunc, errorFunc, i);

to no avail. It still looks for location-username.json.

Any help as to what is causing my error?

maestroi commented 8 years ago

@endeavor7 please do the following steps:

  1. Navigate to the OpenPoGoBot folder.
  2. Open a file and put in {}.
  3. Save the file as catchable-abc123@gmail.com.json.
  4. Restart webservice.

Repeat steps for location.json:

  1. Navigate to the OpenPoGoBot folder.
  2. Open a file and put in {}.
  3. Save the file as location-abc123@gmail.com.json.
  4. Restart webservice.
RedSparr0w commented 8 years ago

Probably loading a cached version of main.js Try disable the cache and see what happens.

ps: this is the correct one to use in userdata.js:

var users = ["ABC123@gmail.com"];
endeavor7 commented 8 years ago

The cached version was the problem! Thanks for clearing this up.

gregtampa commented 8 years ago

how can you delete the cache?

delrio1110 commented 8 years ago

how can you delete the cache?

BobbyWibowo commented 8 years ago

They meant the main.js file was cached on your browser (cached userdata.js should be the main cause though). Just hard refresh the page. Ctrl+F5 will do on most dekstop browsers.