zytomorrow / picgo-plugin-coding

picgo uploader for coding.net
MIT License
21 stars 2 forks source link

浏览器位置填什么? #21

Open zwsn opened 3 years ago

zwsn commented 3 years ago

填chrome的位置,上传报错。 位置:/Applications/Google\ Chrome.app 日志: 2021-10-11 16:51:30 [PicGo INFO] Before transform 2021-10-11 16:51:30 [PicGo INFO] Transforming... Current transformer is [path] 2021-10-11 16:51:30 [PicGo INFO] Before upload 2021-10-11 16:51:30 [PicGo INFO] beforeUploadPlugins: renameFn running 2021-10-11 16:51:30 [PicGo INFO] Uploading... Current uploader is [coding-lite] 2021-10-11 16:51:30 [PicGo WARN] failed 2021-10-11 16:51:30 [PicGo ERROR] ------Error Stack Begin------ Error: Failed to launch the browser process! spawn image ENOENT

TROUBLESHOOTING: https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md

at onClose (/Users/limuby/Library/Application Support/picgo/node_modules/puppeteer-core/lib/cjs/puppeteer/node/BrowserRunner.js:193:20)
at ChildProcess.<anonymous> (/Users/limuby/Library/Application Support/picgo/node_modules/puppeteer-core/lib/cjs/puppeteer/node/BrowserRunner.js:185:85)
at ChildProcess.emit (events.js:200:13)
at Process.ChildProcess._handle.onexit (internal/child_process.js:270:12)
at onErrorNT (internal/child_process.js:456:16)
at processTicksAndRejections (internal/process/task_queues.js:84:9)

-------Error Stack End------- 2021-10-11 16:51:30 [PicGo ERROR] ------Error Stack Begin------ Error: Failed to launch the browser process! spawn image ENOENT

TROUBLESHOOTING: https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md

at onClose (/Users/limuby/Library/Application Support/picgo/node_modules/puppeteer-core/lib/cjs/puppeteer/node/BrowserRunner.js:193:20)
at ChildProcess.<anonymous> (/Users/limuby/Library/Application Support/picgo/node_modules/puppeteer-core/lib/cjs/puppeteer/node/BrowserRunner.js:185:85)
at ChildProcess.emit (events.js:200:13)
at Process.ChildProcess._handle.onexit (internal/child_process.js:270:12)
at onErrorNT (internal/child_process.js:456:16)
at processTicksAndRejections (internal/process/task_queues.js:84:9)

-------Error Stack End-------

zytomorrow commented 2 years ago

已修复,请安装最新版本,同时重新配置

zwsn commented 2 years ago

非常感谢,m1测试正常

zytomorrow commented 2 years ago

😁

zwsn commented 2 years ago

仓忙测试,提示上传成功,我以为就正常了.实际上提示上传成功,并没有上传,picgo的相册列表也没显示,也没有自动复制链接.去coding仓库看也没有提交记录和图片.

本来以为是文件名的问题,因为用的另一个插件会有文件名提示.但是尝试改名之后,还是一样.测试设备是12.2.1的m1,在外地intel设备没测.

zytomorrow commented 2 years ago

我本地测试成功了,方便的话给我截图一下你的配置信息,我确认下

zwsn commented 2 years ago
image image image
zytomorrow commented 2 years ago

团队名称和项目名称都需要填,coding是团队名,项目名,仓库三个层级🌝🌝你看下readme那个填法

zwsn commented 2 years ago

非常感谢作者的耐心回答,怪我没注意.重新配置后可以上传成功,但是不会自动复制链接,相册列表依然不显示上传过的图片.开始怀疑是不是picgo的问题了,尝试过重启,问题依旧.

image image
zytomorrow commented 2 years ago

1646625409(1) 我本地正常,请尝试再安装下下试试呢

zwsn commented 2 years ago

确实是picgo本身的问题,尝试删除 picgo.db,删除配置文件 data.json 然后重命名 config-bak.json -> data.json后,重启picgo就正常了

zytomorrow commented 2 years ago

ok,找到原因就行,后面我再复现下,看能否解决👌