Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

Problems with ipfs-101/i.js #1110

Closed
kidinamoto01 opened this issue Nov 26, 2017 · 2 comments · Fixed by #1112
Closed

Problems with ipfs-101/i.js #1110

kidinamoto01 opened this issue Nov 26, 2017 · 2 comments · Fixed by #1112

Comments

@kidinamoto01
Copy link

  • Version: 0.26
  • Platform: macOS
  • Subsystem:

Type: Bug

Severity: medium

Description:

I tested 1.js, but found out the content cannot be retrieved.
process.stdout(data) should be process.stdout.write(data)
then
`File content:
net.js:695
throw new TypeError(
^

TypeError: Invalid data, chunk must be a string or buffer, not object
at WriteStream.Socket.write (net.js:695:11)
at node.files.cat (/Users/b/Documents/ipfs-wp/1.js:30:20))`

Steps to reproduce the error:

node 1.js

@daviddias
Copy link
Member

Hi @kidinamoto01, the example is already prepared for the next version release and you are probably installing ipfs 0.26.0. Once #1095 is done you won't see this problem anymore. Otherwise, try do a npm linkat the root of the js-ipfs folder to get the latest as global.

@daviddias
Copy link
Member

Hi @kidinamoto01, fixed this example with #1112, you shouldn't have any trouble anymore :) just fetch the latest commit

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants