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

NodeJS版Demo上传图片不成功,调试发现sdk的upload合成的cos域名与默认规则不一致 #138

Open
asdwar opened this issue Jun 7, 2018 · 3 comments

Comments

@asdwar
Copy link

asdwar commented Jun 7, 2018

NodeJS服务器端SDK中,cos访问域生成规则与cos存储桶的默认域名规则不一致,在sdk的upload文件夹下index.js中生成规则为<桶名>-<云ID>.<区域>.myqcloud.com,而腾讯云cos存储桶的默认规则为<桶名>-<云ID>.cos<区域>.myqcloud.com,少了中间的cos,这就导致nodejs的demo中,上传图片不成功

@jas0ncn
Copy link
Contributor

jas0ncn commented Jun 9, 2018

方便提供一下服务端的 wafer-node-sdk 版本吗?

@JxJPu9bD
Copy link

您好,我使用 "wafer-node-sdk": "^1.4.1",自行部署在腾讯云上的,wx.uploadfile 调用返回 -1 没有显示错误原因,请问是什么原因呢

@JxJPu9bD
Copy link

更新为1.4.5后已上传成功

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

3 participants