PokemonGoBot icon indicating copy to clipboard operation
PokemonGoBot copied to clipboard

Keep getting error please help

Open addisonrudd opened this issue 10 years ago • 17 comments

Undertow started on port(s) 8080 (http) Exception in thread "default" java.io.FileNotFoundException: config.properties (No such file or directory) at java.io.FileInputStream.open0(Native Method) at java.io.FileInputStream.open(FileInputStream.java:195) at java.io.FileInputStream.(FileInputStream.java:138) at java.io.FileInputStream.(FileInputStream.java:93) at ink.abb.pogo.scraper.MainKt.startDefaultBot(Main.kt:77) at ink.abb.pogo.scraper.PokemonGoBotApplication$BotRunner$run$1.invoke(PokemonGoBotApplication.kt:57) at ink.abb.pogo.scraper.PokemonGoBotApplication$BotRunner$run$1.invoke(PokemonGoBotApplication.kt:46) at kotlin.concurrent.ThreadsKt$thread$thread$1.run(Thread.kt:18) 2016-08-09 02:58:40.261 INFO 1146 --- [ main] ink.abb.pogo.scraper.MainKt : Started MainKt in 4.205 seconds (JVM running for 4.793)

addisonrudd avatar Aug 09 '16 06:08 addisonrudd

Seems pretty clear to me. You need to have your config.properties file in the same folder as your jar.

rbailloux avatar Aug 09 '16 07:08 rbailloux

@rbailloux i do.

addisonrudd avatar Aug 09 '16 07:08 addisonrudd

No you dont. Exception in thread "default" java.io.FileNotFoundException: config.properties (No such file or directory) clearly says it can't find its config file

Casiuss avatar Aug 09 '16 07:08 Casiuss

@addisonrudd double check that your config.properties file extension is not config.properties.rtf and/or config.properties.txt

TextEdit does this therefore right click on the config.properties file, select Get Info, change the config.rtf to config.properties

screen shot 2016-08-09 at 3 08 04 pm

zoegalaxy avatar Aug 09 '16 07:08 zoegalaxy

@zoegalaxy THANK YOU SO MUCH

addisonrudd avatar Aug 09 '16 07:08 addisonrudd

@zoegalaxy now i have another problem. It says long and lat aren't set and then stops. But I've checked everything a hundred times and they are set and correct.

addisonrudd avatar Aug 09 '16 07:08 addisonrudd

@addisonrudd I had the same problems as you when I first use the bot haha..

  1. Error cannot find config.properties --> extension issue, make sure file is not *.rtf
  2. Problem with latitude and longitude --> use *.json instead, refer to this #810
  3. Problem with latitude and longitude --> Even with *.json, you will encounter latitude error. my theory, when using TextEdit to modify the *.json file it somehow change the normal double quote into a italicised double quote. Not sure why, but program sees this as an error. My solution, use the online JSON editor. Reference #826

I use this site to create and edit the json file: http://www.jsoneditoronline.org/#/

Open it then create a new file, then copy and paste the json.template. Make your modifications on your latitude, longitude, username, and password.

Click save to disk, it will then go to your downloads. Just drag the file into your bot-setting folder.

It worked for me.

zoegalaxy avatar Aug 09 '16 07:08 zoegalaxy

@zoegalaxy okay thanks. So do i delete the .properties one. Or keep it there and put the other in in the settings

addisonrudd avatar Aug 09 '16 07:08 addisonrudd

@addisonrudd you can keep it there, config.json will override the config.properties

zoegalaxy avatar Aug 09 '16 07:08 zoegalaxy

@zoegalaxy i still got the same error

addisonrudd avatar Aug 09 '16 07:08 addisonrudd

can you show us the latitude / longitude part of your config file ?

rbailloux avatar Aug 09 '16 07:08 rbailloux

@zoegalaxy @rbailloux its for sure not that. Its something else. let me show you guys my folders screen shot 2016-08-09 at 3 53 33 am

addisonrudd avatar Aug 09 '16 07:08 addisonrudd

@addisonrudd where are the rest of the files?? also, put the config.json inside the bot-settings folder.

Your bot folder should look like this:

screen shot 2016-08-09 at 4 06 38 pm

zoegalaxy avatar Aug 09 '16 08:08 zoegalaxy

@zoegalaxy where do i get the rest of the files?

addisonrudd avatar Aug 09 '16 08:08 addisonrudd

@addisonrudd oh wait.. I'm not sure if they are really needed. I just have them inside my folder. Anyway, try to put the json file first inside the bot-settings folder. see if it'll work.

zoegalaxy avatar Aug 09 '16 08:08 zoegalaxy

@zoegalaxy then this comes up

screen shot 2016-08-09 at 4 12 13 am

addisonrudd avatar Aug 09 '16 08:08 addisonrudd

Your JSON file is malformed. Please check the official discord for such support questions as this is not a bot issue really ;)

langerhans avatar Aug 11 '16 19:08 langerhans