Unable to add file to IPFS using add method
See original GitHub issueI’m using IPFS version 0.4.2 and have cloned branch 0.4.2 . Using this code :
package org.ipfs.api;
import java.io.*;
public class Main {
public static void main(String args[]) throws Exception{
IPFS m = new IPFS("myhost" , 8080);
NamedStreamable.ByteArrayWrapper file = new NamedStreamable.ByteArrayWrapper("hello.txt", "G'day world! IPFS rocks!".getBytes());
try {
System.out.println(m.add(file));
} catch (IOException e) {
e.printStackTrace();
}
}
}
```produces error :
java.io.IOException: Server returned status: 404 with body: and Trailer header: null
at org.ipfs.api.Multipart.finish(Multipart.java:106)
at org.ipfs.api.IPFS.add(IPFS.java:64)
at org.ipfs.api.IPFS.add(IPFS.java:52)
at org.ipfs.api.Main.main(Main.java:16)
This should work as is ? Or am I missing something ?
Issue Analytics
- State:
- Created 7 years ago
- Comments:8
Top Results From Across the Web
Unable to add file to IPFS using add method · Issue #14 - GitHub
I'm using IPFS version 0.4.2 and have cloned branch 0.4.2 . Using this code : package org.ipfs.api; import java.io.
Read more >IPFS issue: can't upload files with ipfs.add(file) - Stack Overflow
guys. Few month ago I add ipfs for upload files, all worked correctly, but a week ago I have problem and can't resolve...
Read more >Unable to upload images to IPFS using ipfs-http-client
I found a solution to my problem! With ipfs-http-client , you need to use ipfs.add as part of an async/await function in order...
Read more >Lesson: Add Content to IPFS and Retrieve It
Add a file's content to IPFS; Read content out of IPFS using its hash ... One easy way to do this on the...
Read more >Ipfs.add() not working - Bugs - Infura Community
I am using the javascript ipfs-http-client library recent version. mike (Mike Godsey) May 21, 2020 ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@adrian-git-hub-user I’ve pushed a new release which is compatible with ipfs 0.4.3-rc3
@adrian-git-hub-user: there is release that is compatible with the lib https://dist.ipfs.io/go-ipfs/v0.4.3-rc3