SublimeText2-FTPSync
SublimeText2-FTPSync copied to clipboard
Ftp connection error
Hi,
i tried to follow the instructions but the plugin gives me this error:
FTPSync > Loading config: cache hit (key: /Users/Daniele/Dropbox/ProgettiWeb/meeting/wp-content/themes/reverie-master/bbpress.php) FTPSync > Failed parsing configuration file: {/Users/Daniele/Dropbox/ProgettiWeb/meeting/wp-content/themes/reverie-master/ftpsync.settings} (commas problem?) [Exception: Expecting property name: line 1 column 5 (char 5)]
FTPSync > Exception in user code:
Traceback (most recent call last): File "./FTPSync.py", line 807, in loadConfig File "./FTPSync.py", line 699, in parseJson File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/json/init.py", line 307, in loads return _default_decoder.decode(s) File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/json/decoder.py", line 319, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/json/decoder.py", line 336, in raw_decode obj, end = self._scanner.iterscan(s, **kw).next() File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/json/scanner.py", line 55, in iterscan rval, next_pos = action(m, context) File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/json/decoder.py", line 171, in JSONObject raise ValueError(errmsg("Expecting property name", s, end))
ValueError: Expecting property name: line 1 column 5 (char 5)
What's wrong?
Hi, can you please post your settings (with credentials obfuscated)?
Also you can try adding
"debug_extras": {
"dump_config_load": true
}
into the connection config and then look into console (View > Show console) to see what the finalized config looks like, if it's not broken in any way.
If you don't have comments in the file you can also try http://jsonlint.com to check the correctness.
Thank you for reporting
{ "primary": { host: "ftp.example.it", username: "[email protected]", password: "abcdrewq", path: "/www.domain-site.it/",
upload_on_save: false,
tls: true
}
}
Daniele Pavinato | CEO & Founder M: 340 1582787 | A: Faedis - Udine E: [email protected] | W: essentialweb.it
Il giorno 10/lug/2014, alle ore 13:46, Jiří Petruželka [email protected] ha scritto:
Hi, can you please post your settings (with credentials obfuscated)?
Also you can try adding "debug_extras": { "dump_config_load": true }
into the connection config and then look into console (View > Show console) to see what the finalized config looks like, if it's not broken in any way.
If you don't have comments in the file you can also try http://jsonlint.com to check the correctness.
Thank you for reporting
— Reply to this email directly or view it on GitHub.
-Only username, not @. -The path refers to the system's path (so, if you have your folder in /var/www/app, that would be the path). -Change "primary" to "default". Try with that.
Can you try wrapping the keys with "..."? (as in host
=> "host"
)
JsonLint reports this as malformed JSON, with this fix it's accepted
Same error:
TPSync > Loading config: cache hit (key: /Users/Daniele/Dropbox/ProgettiWeb/meeting/wp-content/themes/reverie-master/bbpress.php) FTPSync > Failed parsing configuration file: {/Users/Daniele/Dropbox/ProgettiWeb/meeting/wp-content/themes/reverie-master/ftpsync.settings} (commas problem?) [Exception: Expecting property name: line 1 column 5 (char 5)]
FTPSync > Exception in user code:
Traceback (most recent call last): File "./FTPSync.py", line 807, in loadConfig File "./FTPSync.py", line 699, in parseJson File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/json/init.py", line 307, in loads return _default_decoder.decode(s) File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/json/decoder.py", line 319, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/json/decoder.py", line 336, in raw_decode obj, end = self._scanner.iterscan(s, **kw).next() File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/json/scanner.py", line 55, in iterscan rval, next_pos = action(m, context) File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/json/decoder.py", line 171, in JSONObject raise ValueError(errmsg("Expecting property name", s, end)) ValueError: Expecting property name: line 1 column 5 (char 5)
This is what JSONLint gave me on the test screen: http://monosnap.com/image/jWuG9ofhIWCBz11GmMpvovoYXcjuVl
This is the code modified like you said:
{ 'default': { "host": 'ftp.domain.it', "username": ‘account', "password": ‘password', "path": '/www.domain.it/',
"upload_on_save": false,
"tls": true
}
}
Daniele Pavinato | CEO & Founder M: 340 1582787 | A: Faedis - Udine E: [email protected] | W: essentialweb.it
Il giorno 10/lug/2014, alle ore 18:30, Jiří Petruželka [email protected] ha scritto:
Can you try wrapping the keys with "..."? (as in host => "host") JsonLint reports this as malformed JSON, with this fix it's accepted
— Reply to this email directly or view it on GitHub.
I tried the example on the github:
{ "default: { "host": "...", "username": "...", "password": "...", "path": "...",
"debug_extras": {
"print_list_results": true,
"debug_mfmt": true
}
}
}
But it still gives me error...
Daniele Pavinato | CEO & Founder M: 340 1582787 | A: Faedis - Udine E: [email protected] | W: essentialweb.it
Il giorno 10/lug/2014, alle ore 18:30, Jiří Petruželka [email protected] ha scritto:
Can you try wrapping the keys with "..."? (as in host => "host") JsonLint reports this as malformed JSON, with this fix it's accepted
— Reply to this email directly or view it on GitHub.
Apostrophes are not possible to use, please use quotes "
In your second example you are missing a quote after default
I have something to try in my sleeve, but I'd rather do it after we exhaust options such as these
Thank you for patience
You didn't modified the path. If you want the path to your root (/) server, just put /, not the URL of the server. BTW, NoxArt will help you more than me.
Thank you for responses RompePC! However, the error message is from the JSON decoder - meaning there's an issue with converting the text (in hopefully JSON format) of the file into data structure, the actually values don't get to be used yet (so in more formal terms, it's an issue of syntax, not semantics)
BTW maybe his path
is correct, perhaps the FTP serves for multiple domains and the domain name is a folder name as well
BTW maybe his path is correct, perhaps the FTP servers for multiple domains and the domain name is a folder name as well
Exactly
Daniele Pavinato | CEO & Founder M: 340 1582787 | A: Faedis - Udine E: [email protected] | W: essentialweb.it
Il giorno 10/lug/2014, alle ore 22:59, Jiří Petruželka [email protected] ha scritto:
Thank you for responses RompePC! However, the error message is from the JSON decoder - meaning there's an issue with converting the text (in JSON format) of the file into data structure, the actually values don't get to be used yet (so in more format terms, it's an issue of syntax, not semantics)
BTW maybe his path is correct, perhaps the FTP servers for multiple domains and the domain name is a folder name as well
— Reply to this email directly or view it on GitHub.
Ahhhh, I didn't think about a folder's name with URL xD
No problem man!
Daniele Pavinato | CEO & Founder M: 340 1582787 | A: Faedis - Udine E: [email protected] | W: essentialweb.it
Il giorno 10/lug/2014, alle ore 23:15, David Durillo Moral [email protected] ha scritto:
Ahhhh, I didn't think about a folder's name with URL xD
— Reply to this email directly or view it on GitHub.
I changed the way config is parsed in f3920a0, did it help or is there still an issue?