I keep getting the same error. Not sure if it is caused because there are no bootstrap addresses added or something else.
java.lang.ClassCastException: Bootstrap method returned null
Anyone knows how to resolve this issue or how to add custom bootstrap address?
Code:
byte[] data = "hellobello".getBytes();
IPFS ipfs = new IPFS("/ip4/192.168.0.157/tcp/5001");
NamedStreamable.ByteArrayWrapper file = new NamedStreamable.ByteArrayWrapper("testfile.txt",data);
MerkleNode result = ipfs.add(file).get(0);
I keep getting the same error. Not sure if it is caused because there are no bootstrap addresses added or something else.
Anyone knows how to resolve this issue or how to add custom bootstrap address?
Code: