-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
依旧是multipart()用async出问题:Cannot read property 'length' of undefined #1500
Comments
>△< 实在是没办法了惹 求官方搭救 |
Stream 怎么取 length |
你可以先上传再改名,或用 uuid |
在files2 = yeild files情况下 同样为steam却可以获取length,很懵逼( p′︵‵。) 我没辙了,现在连数据都获取不了,所以没法报错流 |
ctx.multipart 返回的好像不是一个 promise 对象, @newcomein 你是 yield 正常,await 不行对吧? |
@dead-horse 是的 就是这种情况 ・(PД`q。)・゜・ 很奔溃 感觉整个人的灵魂都快丢了 (/TДT)/ |
可以先套个 co 吧,回头 |
@atian25 thanks ♪(^∀^●)ノ 十分感谢 我尝试一下 |
chan 返回的是一个 thunk,能返回 promise? https://github.com/brentburg/chan/blob/master/lib/channel.js#L99 |
去提个 PR 看看 |
要不要先 wrap 下 |
我看了一下,有点麻烦,它用到了 thunk 可重复调用的特性,改成 promise 写法肯定要变。我先 wrap 一个用另外的形式支持 promise 吧 |
一年前的。。。估计不改了吧 |
很无奈是么?我也遇到了,于是就换成yield来获取。。。 |
这个已经改了 |
已经支持 promise 了,重新安装依赖即可(不要锁版本)
发自我的 iPhone
… 在 2017年10月17日,19:34,hello2dj ***@***.***> 写道:
很无奈是么?我也遇到了,于是就换成yield来获取。。。
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
问题代码:
项目演示:https://github.com/newcomein/Wakeup-OS/tree/master/app/controller/post.js
直接打开https://github.com/newcomein/Wakeup-OS/tree/master/app/view/default/pc/index.html
点击上传文件,即可重现这个问题
报错信息:
The text was updated successfully, but these errors were encountered: