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

云床配置不生效 #3

Closed
xiaomudk opened this issue Feb 8, 2023 · 8 comments
Closed

云床配置不生效 #3

xiaomudk opened this issue Feb 8, 2023 · 8 comments
Assignees
Labels
bug Something isn't working

Comments

@xiaomudk
Copy link

xiaomudk commented Feb 8, 2023

@terwer 您好, 我在SiYuan/data/widgets/sy-post-publisher/lib/picgo/picgo.cfg.json文件里添加了图床配置,但是上传图片报错,查看picgo.cfg.json被恢复成默认配置了。

cat picgo.cfg.json
{
  "picBed": {
    "uploader": "smms",
    "current": "smms"
  },
  "picgoPlugins": {}
}

操作系统: macOs
思源版本:v2.63
sy-post-publisher版本: 0.68

@terwer
Copy link
Owner

terwer commented Feb 8, 2023

我本地验证一下看看。
另外, 0.7.0 正在重新开发PicGO 图形化配置界面,请关注进度 terwer/siyuan-plugin-publisher#319

0.7.0 存储路径也进行了优化,数据会自动迁移,关注 terwer/siyuan-plugin-publisher#378 (comment)

@terwer terwer added the wait for reply Wait for reply label Feb 8, 2023
@terwer
Copy link
Owner

terwer commented Feb 8, 2023

@xiaomudk 请使用 0.7.0-beta1 图形界面配置试试。

sy-post-publisher-widget-0.7.0-beta1.zip

@terwer terwer self-assigned this Feb 8, 2023
@xiaomudk
Copy link
Author

xiaomudk commented Feb 9, 2023

@terwer 非常感谢,我测试了下,配置是生效了,但是上传图片报了401

"statusCode":401,"message":"Request failed with status code 401","stack":{},"response":{"status":401,"statusCode":401,"body":{"msg":"need date header","code":40100001,"id":"1f08f0f9fd51f34643a306fdf8d7d87a"}}}

同样的配置(使用的又拍云)直接使用picgo上传是没有问题的

@terwer
Copy link
Owner

terwer commented Feb 9, 2023

@xiaomudk Eletron的安全机制拦截了date字段导致。

image

由于我目前自用的只用Github,其他平台没有严格测试。稍后我会对所有平台重新进行验证。
upyun 的问题已修复,请使用下面最新beta版本验证。

sy-post-publisher-widget-0.7.0-beta3.zip

@xiaomudk
Copy link
Author

xiaomudk commented Feb 10, 2023

@xiaomudk 使用的是upyun吗,配置页面截图看看,操作码可马赛克掉,我这里没问题

image

image

@terwer 辛苦辛苦
我使用beta3,又出现了另外一个报错

操作失败=>Error: upload error, please check you picgo config!Detail info:{"code":"ERR_INVALID_ARG_TYPE"}

@terwer
Copy link
Owner

terwer commented Feb 11, 2023

@xiaomudk 大佬,上面回复了,最近有空提供点配置信息吗,还有操作步骤?

@xiaomudk
Copy link
Author

@terwer 我的操作步骤:
image
image
image

如果需要,咱们可以微信沟通下: xiaomudk-wx

@terwer terwer added bug Something isn't working and removed wait for reply Wait for reply labels Feb 11, 2023
@terwer
Copy link
Owner

terwer commented Feb 11, 2023

已修复,请使用 beta-5 验证。
sy-post-publisher-widget-0.7.0-beta5.zip

@terwer terwer closed this as completed Feb 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: 已完成
Development

No branches or pull requests

2 participants