Skip to content
This repository has been archived by the owner on Apr 9, 2021. It is now read-only.

Error on startup "JSONObject["beta"] not a string" #55

Closed
diydavindra opened this issue Jan 16, 2017 · 11 comments
Closed

Error on startup "JSONObject["beta"] not a string" #55

diydavindra opened this issue Jan 16, 2017 · 11 comments

Comments

@diydavindra
Copy link

diydavindra commented Jan 16, 2017

Hi no matter what i do to the config files i get a error when trying to self host fredboat. I attached some screenshots down below and i double check that i have the latest version of java and yes i blurred out the client key in the screenshot.

https://puu.sh/tnGKj/38a2015202.png
https://puu.sh/tnKg4/186acc1cec.png

@diydavindra
Copy link
Author

So i have a bit of a update i tried removing the "beta" line from the config but that resulted in it saying beta line if missing. Now i tried replacing null with a . and that resulted in the tokens failing.
https://puu.sh/tnKHA/654c8e1e67.png

@freyacodes
Copy link
Owner

The problem is that the bot thinks it is in development mode. That must have been my fault since I left the default configuration like that. Here's what your config.json file should probably look like:

{
	"patron": true,
	"development": false
}

@diydavindra
Copy link
Author

diydavindra commented Jan 16, 2017

Thanks for the reply, that seemed to help but now its showing a error about the credentials file. Also i havent changed the file since.
https://puu.sh/tnZUR/e426ea8cf0.png
https://puu.sh/tnZS1/ae26ef3207.png

@freyacodes
Copy link
Owner

Invalid JSON syntax on line 3. You must specify a value for each key but you left it blank.

@diydavindra
Copy link
Author

diydavindra commented Jan 16, 2017

I had keys in all of them but i deleted them for the screenshot, sorry for the confusion.
https://puu.sh/to2yV/3947d59108.png

@freyacodes
Copy link
Owner

Please make sure you also have your client token surrounded by quotation marks and ending with a comma. Your JSON is not valid.

@diydavindra
Copy link
Author

I added quotes and a comma still no luck.

@diydavindra
Copy link
Author

diydavindra commented Jan 16, 2017

Would you mind if i emailed you the config files?

@freyacodes
Copy link
Owner

freyacodes commented Jan 16, 2017 via email

@diydavindra
Copy link
Author

I pasted it in the viewer then clicked format copied that to the text json file and still puts out the same error.
Also i sent the files i have to the gmail on your profile, thanks for all the help.

@Matthww
Copy link

Matthww commented Feb 10, 2017

I'm having the same problem

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants