Closed MangKyu closed 4 years ago
These changes are equivalent to those I proposed in #159. I wonder if the maintainers of this project are going to merge either pull request...
Thank you! We need to fix multiple issues at the same time, so I reused your changes from this PR and opened https://github.com/ipfs-shipyard/java-ipfs-http-client/pull/164 – lets continue there.
IPFS method does not support GET Method. When i tried to initialize IPFS Object, it occurs an error like below
Exception in thread "main" java.lang.RuntimeException: IOException contacting IPFS daemon. Trailer: null 405 - Method Not Allowed
Caused by: java.io.IOException: Server returned HTTP response code: 405 for URL: http://127.0.0.1:5001/api/v0/version at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1900) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1498) at io.ipfs.api.IPFS.get(IPFS.java:671) ... 6 more
So We have to modify all request to POST only