Node.js 错误 '[INTERNAL ERROR] TypeError: (intermediate value) is not iterable' in Promise.all

我的 Node.js 程序中有一个错误:

[内部错误] 类型错误:(中间值)不可迭代。

错误发生在“await Promise.all”行中。

这个错误不会每次都发生,大部分时间代码运行良好。

错误详情:

def coroutines_version = "1.4.2"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutines_version"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:$coroutines_version"

def lifecycle_version = "2.3.1"
implementation "androidx.lifecycle:lifecycle-livedata-ktx:$lifecycle_version"
implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:$lifecycle_version"
implementation "androidx.lifecycle:lifecycle-runtime-ktx:$lifecycle_version"

def retrofit_version = "2.9.0"
implementation "com.squareup.retrofit2:retrofit:$retrofit_version"
implementation "com.squareup.retrofit2:converter-gson:$retrofit_version"

implementation 'com.squareup.okhttp3:okhttp:4.9.1'

implementation 'com.github.bumptech.glide:glide:4.12.0'
kapt 'com.github.bumptech.glide:compiler:4.12.0'

implementation "androidx.activity:activity-ktx:1.2.4"

代码:

错误发生在“await Promise.all”行。

npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
    Jul 17,2021 @ 15:00:54.990 sforgupsert-srv -   INFO    -   npm ERR! sforgupsert@1.0.0 start: `npx --node-arg=--inspect node_modules/.bin/cds run`
    Jul 17,2021 @ 15:00:54.990 sforgupsert-srv -   INFO    -   npm ERR! Exit status 1
    Jul 17,2021 @ 15:00:54.985 sforgupsert-srv -   INFO    -   npm ERR! errno 1
    Jul 17,2021 @ 15:00:54.984 sforgupsert-srv -   INFO    -   npm ERR! code ELIFECYCLE
    Jul 17,2021 @ 15:00:54.921 sforgupsert-srv -   INFO    -       at process._tickCallback (internal/process/next_tick.js:68:7)
    Jul 17,2021 @ 15:00:54.921 sforgupsert-srv -   INFO    -       at getEntityAllByCustCode (/home/vcap/app/srv/orgservice.js:576:72)
    Jul 17,2021 @ 15:00:54.921 sforgupsert-srv -   INFO    -   Please report this error.
    Jul 17,2021 @ 15:00:54.921 sforgupsert-srv -   INFO    -   [INTERNAL ERROR] TypeError: (intermediate value) is not iterable
    Jul 17,2021 @ 15:00:01.890 sforgupsert-srv -   INFO    -   [cds] - POST /sforg/orgBatchImport

lotusdy 回答:Node.js 错误 '[INTERNAL ERROR] TypeError: (intermediate value) is not iterable' in Promise.all

暂时没有好的解决方案,如果你有好的解决方案,请发邮件至:iooj@foxmail.com
本文链接:https://www.f2er.com/61870.html

大家都在问