-
Notifications
You must be signed in to change notification settings - Fork 298
Conversation
Compiles fine, but ipfs.add throws The problem is here: https://github.com/ipfs/js-ipfs-api/blob/fixes-browser-add/src/get-dagnode.js#L30 Seems the response from object/get and object/data is an empty array rather than a stream. Not sure why this is happening but here may be a clue: https://github.com/ipfs/js-ipfs-api/blob/fixes-browser-add/src/api/add.js#L19 If I |
For some reason the response from add has two objects, the first of which has no name and no hash: I think that's causing the Not sure where the |
Ok, seems the stream.pipe error was due to #323, not seeing it anymore running the latest go-ipfs master. Not sure where the payload stream error is coming from. |
Seems like it is a bug in go-ipfs. The file gets added through the example, but
//cc @Kubuxu @whyrusleeping |
Seems to work here on the master:
I couldn't resolve your object on the network. If that is problem on specific object then please give me hash that is resolvable. |
@Kubuxu it is just the files that are added through js-ipfs-api, on that specific example, that make Note that our tests have coverage for this and they pass, it is just this example (for 0.4.1 and 0.4.3). Which makes me think, could the example be just broken? As in, could the webpack compile step be messing with it? |
Yes, it appears to be a problem with the webpack compile step... the example works by importing dist/index.js and https://wzrd.in/standalone/buffer in a script tag. However I would love to be able to just |
@nycoliver thank you for checking meanwhile! We got slammed yesterday with the IPFS hangouts (you are invited to join btw! https://github.com/ipfs/pm). I do like the idea of having a pristine js-ipfs-api, just like js-ipfs, which is not poluted by assumptions of 'it can access fs', however, we are not able to pursue that change right now as many people depend on it. We might phase it out to an external module, once #305 is complete and stable :) |
305 looks great, and thanks for the invitation! I'll use ipfs-api in a script tag for now but such a hacky solution is really uncomfortable. Hoping this issue gets solved and I can bundle with webpack soon. |
Also ran into this webpacking a new project using js-ipfs-api. I was able to reproduce from calling the
returns
|
Will wait until #390 is merged, as that makes building and things a lot simpler |
Fixed in #414 |
No description provided.