-
Notifications
You must be signed in to change notification settings - Fork 297
object.put: Stored object was different from constructed object #370
Comments
Does this happen with a specific file, or with any files? If so can you provide the file that triggers this? |
Also, The object api expects you to input valid DAG objects that it can encode. For reference the help output from
|
object.put takes either a DAG object or a buffer, which gets treated as the data field. See https://github.com/ipfs/interface-ipfs-core/tree/master/API/object and https://github.com/ipfs/js-ipfs-api/blob/master/src/api/object.js#L57. But yes, I should be using files.add as object size limit is 512kb. Tested with multiple files / any file triggers this. |
My experience has been that if you wrap a Buffer with DAGNode then
|
@nycoliver is this still a issue? Given the constraints that |
Closing, reopen if necessary |
Following code throws error:
stored object was different from constructed object
Tested on os x 10.11 and ipfs v4.0.2 and latest master 0.4.4-dev. Also tested on a fresh debian digitalocean box. Tested with multiple files.
I got the hash of result object from https://github.com/ipfs/js-ipfs-api/blob/master/src/api/object.js#L84
ipfs object get that hash throws
Error: EOF
. So I have a feeling this may be related to #368The text was updated successfully, but these errors were encountered: