New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ipfs initialization takes forever #2768
Comments
|
IPFS uses the debug module to do logging - if you can get it to output the logs and paste them here it'd be helpful - either set |
|
A little bit more info. Type Will post the log. |
|
I have hard time to get a debug log. But I did insert a message alert after Not enough non-option arguments: got 0, need at least 1 Commands: jsipfs key Manage your keys |
|
also |
|
Based on my debug, I think the |
|
React Native is not (yet) a supported platform for running js-IPFS - we're working on adding support over at #2813 Once that issue is resolved we'll be in a better position to debug and fix problems with IPFS running on RN, so if this problem still occurs after that is complete please re-open this issue. |
emclab commentedFeb 11, 2020
Type:
I have the following code to init ipfs (0.40.0):
// Rename this sample file to main.js to use on your project.
// The main.js file will be overwritten in updates/reinstalls.
var rn_bridge = require(‘rn-bridge’);
// Echo every message received from react-native.
rn_bridge.channel.on(‘message’, async (msg) => {
switch (msg) {
case “save”:
break;
case “retrieve”:
break;
default:
break;
};
rn_bridge.channel.send(“From node in main.js”)
const IPFS = require(‘ifps’);
const ipfs_node = await IPFS.create();
rn_bridge.channel.send("from Node version " + ipfs_node.version);
} );
// Inform react-native node is initialized.
rn_bridge.channel.send(“Node was initialized.”);
The problem is that I never seen rn_b
ridge.channel.send("from Node version " + ipfs_node.version); get executed. Why ipfs initialization takes so long? Or my code isn’t right How to check if the ipfs is initialized successfully?
The text was updated successfully, but these errors were encountered: