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

smms官网可以上传,而picgo软件无法上传 #10

Open
peisencn opened this issue Aug 18, 2022 · 16 comments
Open

smms官网可以上传,而picgo软件无法上传 #10

peisencn opened this issue Aug 18, 2022 · 16 comments

Comments

@peisencn
Copy link

使用smms图床,无论是picgo默认的上传还是本插件上传都失败,具体配置与日志信息如下,但直接进入smms官网是可以上传的,请问可能是什么问题?

主要是报错信息1出现,有时也出现报错信息2

希望您能帮忙解答,不胜感激

配置文件:
{
"picBed": {
"current": "smms",
"uploader": "smms",
"smms": {
"token": "UwkwleZ5YSP1lQHC78egAWeuBJYlXYoh"
},
"list": [
{
"name": "SM.MS图床",
"type": "smms",
"visible": true
},
{
"name": "腾讯云COS",
"type": "tcyun",
"visible": false
},
{
"name": "GitHub图床",
"type": "github",
"visible": false
},
{
"name": "七牛图床",
"type": "qiniu",
"visible": false
},
{
"name": "Imgur图床",
"type": "imgur",
"visible": true
},
{
"name": "阿里云OSS",
"type": "aliyun",
"visible": false
},
{
"name": "又拍云图床",
"type": "upyun",
"visible": false
},
{
"name": "SM.MS-登录用户",
"type": "smms-user",
"visible": true
}
],
"smms-user": {
"Authorization": "UwkwleZ5YSP1lQHC78egAWeuBJYlXYoh"
}
},
"settings": {
"shortKey": {
"picgo:upload": {
"enable": true,
"key": "Ctrl+Shift+U",
"name": "upload",
"label": "快捷上传"
}
},
"server": {
"enable": false,
"host": "127.0.0.1",
"port": 36677
},
"privacyEnsure": true,
"showUpdateTip": false,
"autoStart": true,
"customLink": "

\t<img src="$url" width="600"> <center style="font-size:14 px;color:#C0C0C0;"> $fileName",
"pasteStyle": "Custom",
"rename": false,
"autoRename": true
},
"picgoPlugins": {
"picgo-plugin-smms-user": true
},
"debug": true,
"PICGO_ENV": "GUI",
"needReload": false
}

报错信息1:
2022-08-18 21:10:15 [PicGo ERROR]
------Error Stack Begin------
RequestError: Error: connect ETIMEDOUT 104.21.83.45:443
at new RequestError (C:\Program Files\PicGo\resources\app.asar\node_modules\request-promise-core\lib\errors.js:14:15)
at Request.plumbing.callback (C:\Program Files\PicGo\resources\app.asar\node_modules\request-promise-core\lib\plumbing.js:87:29)
at Request.RP$callback [as _callback] (C:\Program Files\PicGo\resources\app.asar\node_modules\request-promise-core\lib\plumbing.js:46:31)
at self.callback (C:\Program Files\PicGo\resources\app.asar\node_modules\request\request.js:185:22)
at Request.emit (events.js:200:13)
at Request.onRequestError (C:\Program Files\PicGo\resources\app.asar\node_modules\request\request.js:877:8)
at ClientRequest.emit (events.js:200:13)
at TLSSocket.socketErrorListener (_http_client.js:402:9)
at TLSSocket.emit (events.js:200:13)
at emitErrorNT (internal/streams/destroy.js:91:8)
-------Error Stack End-------

报错信息2:
2022-08-18 20:21:26 [PicGo ERROR]
------Error Stack Begin------
RequestError: Error: read ECONNRESET
at new RequestError (C:\Program Files\PicGo\resources\app.asar\node_modules\request-promise-core\lib\errors.js:14:15)
at Request.plumbing.callback (C:\Program Files\PicGo\resources\app.asar\node_modules\request-promise-core\lib\plumbing.js:87:29)
at Request.RP$callback [as _callback] (C:\Program Files\PicGo\resources\app.asar\node_modules\request-promise-core\lib\plumbing.js:46:31)
at self.callback (C:\Program Files\PicGo\resources\app.asar\node_modules\request\request.js:185:22)
at Request.emit (events.js:200:13)
at Request.onRequestError (C:\Program Files\PicGo\resources\app.asar\node_modules\request\request.js:877:8)
at ClientRequest.emit (events.js:200:13)
at TLSSocket.socketErrorListener (_http_client.js:402:9)
at TLSSocket.emit (events.js:200:13)
at emitErrorNT (internal/streams/destroy.js:91:8)
-------Error Stack End-------

@xlzy520
Copy link
Owner

xlzy520 commented Aug 18, 2022

@Li0218 看报错都是连接超时,可能跟你网络有关,跟代码逻辑没有关系,除非是接口地址换了

@xlzy520
Copy link
Owner

xlzy520 commented Aug 18, 2022

@Li0218 经过验证,可以确认是这个接口地址被墙了,我给picgo配置代理之后,就能上传了
image

@Reed-yang
Copy link

smms官网域名改成了smms.app,与这个有关系吗

@xlzy520
Copy link
Owner

xlzy520 commented Aug 19, 2022

@Reed-yang 登录之后还是https://sm.ms/

@myheavyhead
Copy link

我也有同样的问题,麻烦能说说具体这么解决吗,代理怎么设置,感谢!
报错信息如下:
2022-08-19 16:14:39 [PicGo ERROR]
------Error Stack Begin------
RequestError: Error: tunneling socket could not be established, cause=connect ECONNREFUSED 127.0.0.1:7890
at new RequestError (D:\Work\PicGo\resources\app.asar\node_modules\request-promise-core\lib\errors.js:14:15)
at Request.plumbing.callback (D:\Work\PicGo\resources\app.asar\node_modules\request-promise-core\lib\plumbing.js:87:29)
at Request.RP$callback [as _callback] (D:\Work\PicGo\resources\app.asar\node_modules\request-promise-core\lib\plumbing.js:46:31)
at self.callback (D:\Work\PicGo\resources\app.asar\node_modules\request\request.js:185:22)
at Request.emit (events.js:200:13)
at Request.onRequestError (D:\Work\PicGo\resources\app.asar\node_modules\request\request.js:877:8)
at ClientRequest.emit (events.js:200:13)
at ClientRequest.onError (D:\Work\PicGo\resources\app.asar\node_modules\tunnel-agent\index.js:179:21)
at Object.onceWrapper (events.js:288:20)
at ClientRequest.emit (events.js:200:13)
-------Error Stack End-------
2022-08-19 16:15:00 [PicGo INFO] Before transform

@xlzy520
Copy link
Owner

xlzy520 commented Aug 19, 2022

@flower-worm 开启vpn,然后在picgo设置的代理设置里面,配置你的代理端口

@myheavyhead
Copy link

@xlzy520 您说的这个方法我还是有点没明白,能否加个QQ详聊,如果收费也可以,我qq:295312993

@myorange2009
Copy link

myorange2009 commented Aug 27, 2022

这个代理怎么设置的,在VPN哪里?
Quicker_20220827_110439
还是这个?
Quicker_20220827_110521
图1的设置了不生效

@xlzy520
Copy link
Owner

xlzy520 commented Aug 27, 2022

@myorange2009
举个例子,你的代理端口好像是19180
image
image

这样应该就行了

@arkr9
Copy link

arkr9 commented Sep 9, 2022

因为上传的地址改了,把index.js中的url更换成 https://smms.app/api/v2/upload 就好了

VeryCapture_20220909142611

@xlzy520
Copy link
Owner

xlzy520 commented Sep 9, 2022

@arkr9 验证过吗?如果验证过的话,可以提个PR

@xlzy520
Copy link
Owner

xlzy520 commented Sep 9, 2022

由于网络问题,中国大陆用户无法访问 SM.MS,我们添加了备用域名smms.app

@xlzy520
Copy link
Owner

xlzy520 commented Sep 9, 2022

@flower-worm @Li0218 @arkr9 @myorange2009 已修改,升级版本即可

@leland17
Copy link

@flower-worm @Li0218 @arkr9 @myorange2009 已修改,升级版本即可

image
似乎smms.app访问还是有超时,看解析出来这个ip地址

image

@Halcyon666
Copy link

您好 ,请问一下index.js在哪个位置呢?

@myheavyhead
Copy link

myheavyhead commented Nov 5, 2022 via email

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

8 participants