1.errorの原因
functionにawaitを付け忘れると出る
2.errorの条件
・呼び出しfunctionのreturn値が配列
かつ
・呼び出しfunction をasyncで定義している
3.理由
its return value is not iterable.
4.errorの例
# npm run dev:supply > privateinvoice@0.0.1 dev:supply > npx dotenv -e .supply.env node index.js --- Starting HTTP Server --- Private Invoice is using database: SupplierServer_265 Private Invoice is listening on Port: 3000 /confirm Time: 174 ms code=false /opt/PrivateInvoice/282/routes/wallet.js:179 const [status6, data6] = _getSupplierAccount(supplier_host, document_uuid, user_uuid) ; ^ TypeError: _getSupplierAccount is not a function or its return value is not iterable at /opt/PrivateInvoice/282/routes/wallet.js:179:27 at processTicksAndRejections (node:internal/process/task_queues:96:5) Node.js v17.8.0 #