PokemonGo-Bot icon indicating copy to clipboard operation
PokemonGo-Bot copied to clipboard

WebServer Map

Open ltotsas opened this issue 10 years ago • 18 comments

Trying to setup the webserver but every time the username is wrong and i get

127.0.0.1 - - [24/Jul/2016 19:30:46] code 404, message File not found 127.0.0.1 - - [24/Jul/2016 19:30:46] "GET /location-larrougos.json HTTP/1.1" 404 - 127.0.0.1 - - [24/Jul/2016 19:30:46] code 404, message File not found 127.0.0.1 - - [24/Jul/2016 19:30:46] "GET /catchable-larrougos.json HTTP/1.1" 404 -

The username in Bot config is the same!

ltotsas avatar Jul 24 '16 16:07 ltotsas

so look at the folder what the filenames are - thats what you need to put in as username

Aiyubi avatar Jul 24 '16 16:07 Aiyubi

inside the folders of the bot the username for example is "tarto", if i use the same username inside the web folder of the map config it does not work

ltotsas avatar Jul 24 '16 16:07 ltotsas

can you show the python output and userdata.js ?

Aiyubi avatar Jul 24 '16 19:07 Aiyubi

Yes, the same problem. my config is correct.

[24/Jul/2016 23:06:33] code 404, message File not found [24/Jul/2016 23:06:33] "GET /location-xqsdvhk1.json HTTP/1.1" 404 - [24/Jul/2016 23:06:33] code 404, message File not found [24/Jul/2016 23:06:33] "GET /catchable-xqsdvhk1.json HTTP/1.1" 404 -

nvhk avatar Jul 24 '16 21:07 nvhk

if you want help I will need:

  • "ls" in the directory to see what files
  • the userdata.js to see what username is written in there
  • the console output to see what filename it is failing on

If you want to check yourself - it should always be the same.

As for the last report here it should be:

  • a file named "location-xqsdvhk1.json" in the web directory
  • the user "xqsdvhk1" in the userdata.js
  • the request for [24/Jul/2016 23:06:33] "GET /catchable-xqsdvhk1.json HTTP/1.1" in the terminal window

Aiyubi avatar Jul 24 '16 21:07 Aiyubi

Ok, problem solved. If i use gmail account, i need put in userdata.js my whole email adress [email protected]

nvhk avatar Jul 24 '16 21:07 nvhk

well, as i have played with the username the following results appear. for start i had the same username as inside the bot folder aka "[email protected]" var users = ["[email protected]"]; the errors i got was : 127.0.0.1 - - [24/Jul/2016 19:30:46] code 404, message File not found 127.0.0.1 - - [24/Jul/2016 19:30:46] "GET /location-larrougos.json HTTP/1.1" 404 - after that i tried to remove the array and use it as a simple variable var users = "[email protected]"; the erros i got was the same as the other guy said : [24/Jul/2016 23:06:33] code 404, message File not found [24/Jul/2016 23:06:33] "GET /location-xqsdvhk1.json HTTP/1.1" 404 - [24/Jul/2016 23:06:33] code 404, message File not found [24/Jul/2016 23:06:33] "GET /catchable-xqsdvhk1.json HTTP/1.1" 404 - in the end i simple just used the same as in the first place and it worked nothing more nothing less

ltotsas avatar Jul 24 '16 21:07 ltotsas

Ive tried all the options above. Ive put my gmail email into the array and i still get... screen shot 2016-07-24 at 3 13 48 pm

I can't see to find any file that has the location-XXXX or the catchable-XXXX. Am i suppose to have debug mode ON on the bot?

screen shot 2016-07-24 at 3 17 53 pm

screen shot 2016-07-24 at 3 18 58 pm

kilabyte avatar Jul 24 '16 22:07 kilabyte

I got the same problem as @kilabyte . I can't find any of location-NAME or catchable-NAME in the folder.

//edit: I just created the files myself and it worked fine.

Devsome avatar Jul 24 '16 22:07 Devsome

@Devsome are they just empty files with that naming convention?

kilabyte avatar Jul 25 '16 05:07 kilabyte

nope they constantly update

Leondoingstuff avatar Jul 25 '16 05:07 Leondoingstuff

although should probably automatically write those files if they're not already there

Leondoingstuff avatar Jul 25 '16 05:07 Leondoingstuff

same here,its not automatically generate in web folder.

//edit: nope,its generated if the config file is config.json,if you use another name like configs.json or in config.json using google account its not generated.

Doc5az avatar Jul 25 '16 07:07 Doc5az

inventory-USER.json and catchable-USER.json are generated only location-USER.json is not generated

master

bramvera avatar Jul 25 '16 08:07 bramvera

@brumie true but,if you create manually the location-USER.json file is work again. when i'm trying to another name config file its didnt work even try to create manually the files.

//edit: no,its work even with another name config file but you must create it the file manually.

Doc5az avatar Jul 25 '16 10:07 Doc5az

Same behaviour for data/last-location-%s.json Will not be auto-generated, but will update as soon as you create it manually

Mordana avatar Jul 25 '16 11:07 Mordana

web folder is not included by this code. its a seperate git repo (https://github.com/OpenPoGo/OpenPoGoWeb by default)

fredrik-hellmangroup avatar Jul 25 '16 11:07 fredrik-hellmangroup

@surfaace Thanks! Can updated instructions be pushed to the readme?

andrewjsohn avatar Jul 25 '16 18:07 andrewjsohn