x-cold / yuque-hexo

同步语雀的文章到你的 Hexo 项目吧!
http://blog.lxstart.net/
MIT License
711 stars 83 forks source link

图片替换失败 #136

Open zhuzil opened 1 year ago

zhuzil commented 1 year ago

[WARNING] 上传图片失败,请检查: {"status":401,"statusCode":401,"statusMessage":"Unauthorized","headers":{"server":"openresty","date":"Fri, 03 Mar 2023 15:47:37 GMT","content-type":"application/json","content-length":"45","connection":"keep-alive","access-control-allow-headers":"X-File-Name, X-File-Type, X-File-Size","access-control-allow-methods":"OPTIONS, HEAD, POST","access-control-allow-origin":"*","access-control-expose-headers":"X-Log, X-Reqid","access-control-max-age":"2592000","cache-control":"no-store, no-cache, must-revalidate","pragma":"no-cache","x-content-type-options":"nosniff","x-reqid":"WQwAAABPlrFg80gX","x-svr":"UP","x-log":"X-Log"},"size":45,"aborted":false,"rt":217,"keepAliveSocket":false,"data":{"error":"bad token","error_code":"BadToken"},"requestUrls":["http://up-z2.qiniup.com/"],"timing":null,"remoteAddress":"198.18.1.170","remotePort":80,"socketHandledRequests":1,"socketHandledResponses":1}

我怀疑是七牛云的SECRET_ID和SECRET_KEY设置错了,因为我从七牛云里拿到的是AccessKey/SecretKey,我就把一个作为ID一个作为KEY,然后就报了上面的错。

请问到底怎么了呀?