Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed reading config file: SyntaxError: Unexpected token in JSON at position 26 #17

Closed
reh8388 opened this issue Apr 5, 2017 · 3 comments

Comments

@reh8388
Copy link

reh8388 commented Apr 5, 2017

Having issues with the config file. I have cleared all files and started with a fresh install. I am still unable to get beyond this error. Any help would be appreciated. Exact copy of the config file:

{
"ip": "192.168.0.3”,
"port": "39500"
}

@dpjanes
Copy link
Owner

dpjanes commented Apr 5, 2017

Perhaps you can post the error

@reh8388
Copy link
Author

reh8388 commented Apr 5, 2017

Sorry it wasn't clear. The title was the error. I am assuming at this point my text editor was doing some sort of EOL conversion as I changed my IP on the hub to match the one in the example file so I didn't have to modify the file and that has gotten me past the error.

"Failed reading config file: SyntaxError: Unexpected token in JSON at position 26"

@dpjanes
Copy link
Owner

dpjanes commented Apr 5, 2017

No stack trace? What command are you running?

Also just for fun - assuming you're using Python- try this, replacing sample.json with whatever JSON files you've created.

python -c "import json; json.load(open('sample.json'))"

@dpjanes dpjanes closed this as completed May 22, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants