You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 10, 2020. It is now read-only.
TypeError: content.once is not a function
at Multipart._pushFile (/Users/alan/Desktop/test/node_modules/ipfs-api/src/utils/multipart.js:80:13)
at Multipart._maybeDrain (/Users/alan/Desktop/test/node_modules/ipfs-api/src/utils/multipart.js:48:14)
at Multipart._transform (/Users/alan/Desktop/test/node_modules/ipfs-api/src/utils/multipart.js:40:10)
at Multipart.Transform._read (_stream_transform.js:185:10)
at Multipart.Transform._write (_stream_transform.js:173:12)
at doWrite (_stream_writable.js:410:12)
at writeOrBuffer (_stream_writable.js:396:5)
at Multipart.Writable.write (_stream_writable.js:294:11)
at eachSeries (/Users/alan/Desktop/test/node_modules/ipfs-api/src/utils/send-files-stream.js:51:35)
at /Users/alan/Desktop/test/node_modules/async/internal/withoutIndex.js:9:16 []
/Users/alan/Desktop/test/node_modules/wrappy/wrappy.js:27
Object.keys(cb).forEach(function (k) {
^
TypeError: Cannot convert undefined or null to object
at Function.keys (<anonymous>)
at wrapper (/Users/alan/Desktop/test/node_modules/wrappy/wrappy.js:27:14)
at Function.promisify (/Users/alan/Desktop/test/node_modules/ipfs-api/src/files/add.js:20:22)
at Object.add (/Users/alan/Desktop/test/node_modules/promisify-es6/index.js:32:27)
at Object.<anonymous> (/Users/alan/Desktop/test/ipfs-api-pull.test.js:28:12)
at Module._compile (internal/modules/cjs/loader.js:654:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:665:10)
at Module.load (internal/modules/cjs/loader.js:566:32)
at tryModuleLoad (internal/modules/cjs/loader.js:506:12)
at Function.Module._load (internal/modules/cjs/loader.js:498:3)
Error: first arg must be a buffer, readable stream, an object or array of objects
at Function.promisify (/Users/alan/Desktop/test/node_modules/ipfs-api/src/files/add.js:34:23)
at Object.add (/Users/alan/Desktop/test/node_modules/promisify-es6/index.js:32:27)
at Object.<anonymous> (/Users/alan/Desktop/test/ipfs-api-pull.test.js:52:12)
at Module._compile (internal/modules/cjs/loader.js:654:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:665:10)
at Module.load (internal/modules/cjs/loader.js:566:32)
at tryModuleLoad (internal/modules/cjs/loader.js:506:12)
at Function.Module._load (internal/modules/cjs/loader.js:498:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:695:10)
at startup (internal/bootstrap/node.js:201:19)
TypeError: content.once is not a function
at Multipart._pushFile (/Users/alan/Desktop/test/node_modules/ipfs-api/src/utils/multipart.js:80:13)
at Multipart._maybeDrain (/Users/alan/Desktop/test/node_modules/ipfs-api/src/utils/multipart.js:48:14)
at Multipart._transform (/Users/alan/Desktop/test/node_modules/ipfs-api/src/utils/multipart.js:40:10)
at Multipart.Transform._read (_stream_transform.js:185:10)
at Multipart.Transform._write (_stream_transform.js:173:12)
at doWrite (_stream_writable.js:410:12)
at writeOrBuffer (_stream_writable.js:396:5)
at Multipart.Writable.write (_stream_writable.js:294:11)
at eachSeries (/Users/alan/Desktop/test/node_modules/ipfs-api/src/utils/send-files-stream.js:51:35)
at /Users/alan/Desktop/test/node_modules/async/internal/withoutIndex.js:9:16
Some of these operations work directly on a js-ipfs instance. I've opened ipfs/js-ipfs#1317 for the ones that do not.
Type: Bug
Severity: High
Description:
Using
files.add(pull stream)
does not workSteps to reproduce the error:
addPullStream with chunks of { content: [pull stream] }
output:
add with pull stream (promise)
output:
add with pull stream (callback)
output:
add with [{ content: [pull stream] }]
output:
Some of these operations work directly on a js-ipfs instance. I've opened ipfs/js-ipfs#1317 for the ones that do not.
Files spec (which allows these combinations) for reference: https://github.com/ipfs/interface-ipfs-core/blob/master/SPEC/FILES.md
The text was updated successfully, but these errors were encountered: