Skip to content

Server returned HTTP response code: 405 for URL: http://127.0.0.1:5001/api/v0/version #162

@MangKyu

Description

@MangKyu

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

at io.ipfs.api.IPFS.get(IPFS.java:683)
at io.ipfs.api.IPFS.retrieve(IPFS.java:662)
at io.ipfs.api.IPFS.retrieveAndParse(IPFS.java:624)
at io.ipfs.api.IPFS.version(IPFS.java:572)
at io.ipfs.api.IPFS.(IPFS.java:69)
at io.ipfs.api.IPFS.(IPFS.java:45)
at Main.main(Main.java:15)
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`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions