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

tinypng 报错 #63

Open
boringhex-top opened this issue Dec 29, 2022 · 5 comments
Open

tinypng 报错 #63

boringhex-top opened this issue Dec 29, 2022 · 5 comments

Comments

@boringhex-top
Copy link

boringhex-top commented Dec 29, 2022

PicGo 2.3.1
Win10 19044

2022-12-29 13:04:30 [PicGo INFO] TinyPng 上传本地图片
2022-12-29 13:04:30 [PicGo WARN] failed
2022-12-29 13:04:30 [PicGo ERROR]
------Error Stack Begin------
TypeError: req.end is not a function
at TinyPng.uploadImage (C:\Users\yp.wang\AppData\Roaming\picgo\node_modules\picgo-plugin-compress\dist\compress\tinypng\tinypng.js:160:17)
at TinyPng. (C:\Users\yp.wang\AppData\Roaming\picgo\node_modules\picgo-plugin-compress\dist\compress\tinypng\tinypng.js:107:54)
at step (C:\Users\yp.wang\AppData\Roaming\picgo\node_modules\picgo-plugin-compress\dist\compress\tinypng\tinypng.js:52:23)
at Object.next (C:\Users\yp.wang\AppData\Roaming\picgo\node_modules\picgo-plugin-compress\dist\compress\tinypng\tinypng.js:33:53)
at fulfilled (C:\Users\yp.wang\AppData\Roaming\picgo\node_modules\picgo-plugin-compress\dist\compress\tinypng\tinypng.js:24:58)
-------Error Stack End-------
2022-12-29 13:04:30 [PicGo ERROR]
------Error Stack Begin------
TypeError: req.end is not a function
at TinyPng.uploadImage (C:\Users\yp.wang\AppData\Roaming\picgo\node_modules\picgo-plugin-compress\dist\compress\tinypng\tinypng.js:160:17)
at TinyPng. (C:\Users\yp.wang\AppData\Roaming\picgo\node_modules\picgo-plugin-compress\dist\compress\tinypng\tinypng.js:107:54)
at step (C:\Users\yp.wang\AppData\Roaming\picgo\node_modules\picgo-plugin-compress\dist\compress\tinypng\tinypng.js:52:23)
at Object.next (C:\Users\yp.wang\AppData\Roaming\picgo\node_modules\picgo-plugin-compress\dist\compress\tinypng\tinypng.js:33:53)
at fulfilled (C:\Users\yp.wang\AppData\Roaming\picgo\node_modules\picgo-plugin-compress\dist\compress\tinypng\tinypng.js:24:58)
-------Error Stack End-------

@pepedd864
Copy link

坏了,我也是这个错误

@LinusLing
Copy link

不是 compress 插件的问题。

可以看 Obsidian 高效写作:PicGo+gitee+TnyPNG自动压缩图片上传图床,而且还免费! 这个b站视频,里面有讲详细的解决方案。

@hyn-lei
Copy link

hyn-lei commented Jan 27, 2023

更新:PicGo底层上传库从 request 迁移至 axios ,理论上对旧有插件是兼容的,如果插件遇到不兼容的情况请开发者参考 PicGo-Core 的 PicGo/PicGo-Core#65 进行适配

可以根据楼上的视频,下载老版本的 picgo2.3.0 即可。插件停更好像。

@hyn-lei
Copy link

hyn-lei commented Jan 27, 2023

参看这个修改:
#64 (comment)

@supine0703
Copy link

已解决:#71

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

4 participants