mehtadone / PTFeeder

Official GitHub for ProfitTrailer's best buddy, PT Feeder. Be sure to visit their GitHub too.
https://wiki.ptfeeder.co/
182 stars 33 forks source link

Cannot Parse the JSON File #330

Closed Kittrix84 closed 6 years ago

Kittrix84 commented 6 years ago

Hi, I have updated the settings in the Hostsettings file to what I believe are correct, but it cant seem to find the right file folder for PT

{ "Host": { "ProfitTrailerFolder1":"G:\ProfitTrailer"", // add your in one or more PT folders below, where ths application.properties file is. Note that windows users must add \ in between the folders, NOT \

"ProfitTrailerApiEndPoint1":https://localhost:8081 "", // this is where the api is to be found from PT to save your settings. For example, https://localhost:8081

"HostName": "", // the name that is used on telegram messages and the name of the config in PT.

Jsonlint gave me this error back

Error: Parse error on line 3: ...ProfitTrailer " ", // add your i --------------------^ Expecting 'EOF', '}', ':', ',', ']', got 'undefined'

I cannot work out what is going on.....

zwarbo commented 6 years ago

This comment should fix one issue: "Note that windows users must add \ in between the folders, NOT \"

"ProfitTrailerFolder1":"G:\\ProfitTrailer",

Also the markup formatting in this GitHub comment field is making a mess of things.

Looks to be double quotes at the end of the Path which could be wrong.

Also take the 's' off https to leave just http

Kittrix84 commented 6 years ago

I had that, have been changing the format to see if it would fix the issue

current settings { "Host": { "ProfitTrailerFolder1":"G:\ \ProfitTrailer"",

...... Github keeps editing it back to one \ there's no space in between in my notepad+ Also Removed the double "

Saying

Error: Parse error on line 3: ...G:\ProfitTrailer", // add your in one o -----------------------^ Expecting 'STRING', got 'undefined'

Kittrix84 commented 6 years ago

Ok...... for whatever reason, the file wasn't saving into the host directory properly.... seems to be running now....

Strange....

Thanks for your help mate!