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
七牛云拉取文件始终返回404 #5266
Comments
提交到你的 GitHub 仓库,给在线地址,不要给 ZIP 包。 |
另外,这里好像有一些封装好的:https://npms.io/search?q=qiniu |
|
库我试了两个了,都是类似的问题 |
你再确认下,真的有么? |
|
要 await 吧。这种查询不可能是同步的。 这个其实跟 egg 没啥关系了,就是 qiniu 的 sdk 是 callback 的,如何包成 promise。 |
看起来是这样的,现在就卡在这里了 |
找下 qiniu 那边的人问问,看他们有没有提供 promise 的 api。 从你最顶上的源码截图来看,promise 包装似乎没问题的。你可以试下,不用 egg,直接写个 index.js 里面跑下这段代码,调试通了再放 egg 一点点来。 |
好的,谢谢天猪。 |
Your detail info about the Bug:
1、在使用qiniu SDK 拉取文件时,始终返回404,考虑异步回调的原因,也加了Promise包裹,但是结果并不如意:
版本信息:
Reproduction Repo
bug.zip
始终返回:
Node Version
v16.20.2
Eggjs Version
^3
Plugin Name and its version
egg-ci,2
Platform and its version
mac os
The text was updated successfully, but these errors were encountered: