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上傳失敗 #54

Open
NeiL978 opened this issue Sep 26, 2022 · 3 comments
Open

tinypng上傳失敗 #54

NeiL978 opened this issue Sep 26, 2022 · 3 comments

Comments

@NeiL978
Copy link

NeiL978 commented Sep 26, 2022

PicGo-Core版本:picgo@1.5.0-alpha.10
使用tinyPNG壓縮,上傳到tinyPNG時報錯。

2022-09-26 20:12:04 [PicGo INFO] Before transform 
2022-09-26 20:12:04 [PicGo INFO] Transforming... Current transformer is [compress] 
2022-09-26 20:12:04 [PicGo INFO] 压缩:tinypng 
2022-09-26 20:12:04 [PicGo INFO] 图片地址:/Applications/Typora.app/Contents/Resources/TypeMark/assets/icon/icon_512x512.png 
2022-09-26 20:12:04 [PicGo INFO] 图片信息:{"fileName":"icon_512x512.png","extname":".png"} 
2022-09-26 20:12:04 [PicGo INFO] 图片地址:/Applications/Typora.app/Contents/Resources/TypeMark/assets/icon/icon_256x256.png 
2022-09-26 20:12:04 [PicGo INFO] 图片信息:{"fileName":"icon_256x256.png","extname":".png"} 
2022-09-26 20:12:04 [PicGo INFO] TinyPng初始化 
2022-09-26 20:12:04 [PicGo INFO] TinyPng开始上传 
2022-09-26 20:12:04 [PicGo INFO] TinyPng初始化 
2022-09-26 20:12:04 [PicGo INFO] TinyPng开始上传 
2022-09-26 20:12:04 [PicGo INFO] 获取本地图片 
2022-09-26 20:12:04 [PicGo INFO] 获取本地图片 
2022-09-26 20:12:04 [PicGo INFO] 使用TinypngKey:XXXXXXXXXXXHX0FjGc4cCXr68Fz 
2022-09-26 20:12:04 [PicGo INFO] TinyPng 上传本地图片 
2022-09-26 20:12:04 [PicGo WARN] failed 
2022-09-26 20:12:04 [PicGo ERROR] 
------Error Stack Begin------
TypeError: req.end is not a function
    at TinyPng.uploadImage (/Users/neil/.picgo/node_modules/picgo-plugin-compress/dist/compress/tinypng/tinypng.js:160:17)
    at TinyPng.<anonymous> (/Users/neil/.picgo/node_modules/picgo-plugin-compress/dist/compress/tinypng/tinypng.js:107:54)
    at step (/Users/neil/.picgo/node_modules/picgo-plugin-compress/dist/compress/tinypng/tinypng.js:52:23)
    at Object.next (/Users/neil/.picgo/node_modules/picgo-plugin-compress/dist/compress/tinypng/tinypng.js:33:53)
    at fulfilled (/Users/neil/.picgo/node_modules/picgo-plugin-compress/dist/compress/tinypng/tinypng.js:24:58)
-------Error Stack End------- 
···
@2019YKL
Copy link

2019YKL commented Oct 18, 2022

一样无法正常上传,提示req.end is not a function报错

@abigmiu
Copy link

abigmiu commented Nov 7, 2022

一样 TypeError: req.end is not a function

@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