imba97 / picgo-plugin-ftp-uploader

picgo插件 FTP上传
MIT License
24 stars 7 forks source link

配置一直报错是因为什么 #19

Open demo112 opened 2 years ago

demo112 commented 2 years ago

------Error Stack Begin------ SyntaxError: Unexpected token } in JSON at position 352 at JSON.parse () at C:\Users\Smbtest\AppData\Roaming\picgo\node_modules\picgo-plugin-ftp-uploader\dist\config.js:73:26 at new Promise () at Object.exports.getFtpConfig (C:\Users\Smbtest\AppData\Roaming\picgo\node_modules\picgo-plugin-ftp-uploader\dist\config.js:38:12) at Object.handle (C:\Users\Smbtest\AppData\Roaming\picgo\node_modules\picgo-plugin-ftp-uploader\dist\index.js:12:43) at Lifecycle.doUpload (C:\Program Files (x86)\PicGo\resources\app.asar\node_modules\picgo\dist\src\core\Lifecycle.js:80:77) at Lifecycle.start (C:\Program Files (x86)\PicGo\resources\app.asar\node_modules\picgo\dist\src\core\Lifecycle.js:26:24) at processTicksAndRejections (internal/process/task_queues.js:89:5) at async PicGo.upload (C:\Program Files (x86)\PicGo\resources\app.asar\node_modules\picgo\dist\src\core\PicGo.js:205:32) at async Object.upload (C:\Program Files (x86)\PicGo\resources\app.asar\background.js:36:29196) 配置文件 "smbtest-ftp": { "url": "http://61.164.52.174:8081", "path": "/automation-tool-group/automation-tool-bug-tracking-system/uploads/{year}/{month}/{fullName}", "uploadPath": "/1个人文件/88图床/{year}/{month}/{fullName}",

imba97 commented 2 years ago

配置文件内容格式不对,严格按照json的格式