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

Example 1.js doesn't work #1014

Closed
davidweisss opened this issue Sep 11, 2017 · 3 comments
Closed

Example 1.js doesn't work #1014

davidweisss opened this issue Sep 11, 2017 · 3 comments
Labels
kind/support A question or request for support

Comments

@davidweisss
Copy link

The basic example doesn't return anything.
2017-09-11-092353_442x319_scrot
Best-

  • Version:
  • Platform:
  • Subsystem:

Type:

Severity:

Description:

Steps to reproduce the error:

@daviddias
Copy link
Member

Since you are running the example on the node REPL, you are opening yourself to a race condition on the action "listening to the ready event" and the "new IPFS()" call.

To run the example, avoid using the node REPL (not designed to work there) and just do: node 1.js

@daviddias daviddias added the kind/support A question or request for support label Sep 11, 2017
@daviddias
Copy link
Member

Did that work for you? I see a thumbs up but just want to make sure it is ok to close this issue :)

@davidweisss
Copy link
Author

Yes, thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/support A question or request for support
Projects
None yet
Development

No branches or pull requests

2 participants