ipfs-shipyard / java-ipfs-http-client

A Java implementation of the HTTP IPFS API
MIT License
539 stars 243 forks source link

DNS test cannot resolve name #103

Closed tdiesler closed 5 years ago

tdiesler commented 6 years ago
Tests run: 37, Failures: 0, Errors: 1, Skipped: 2, Time elapsed: 70.75 sec <<< FAILURE! - in io.ipfs.api.APITest
dnsTest(io.ipfs.api.APITest)  Time elapsed: 0.166 sec  <<< ERROR!
java.lang.RuntimeException: 
IOException contacting IPFS daemon.
Trailer: [X-Stream-Error] {"Message":"could not resolve name (recursion limit exceeded)","Code":0,"Type":"error"}

    at io.ipfs.api.APITest.dnsTest(APITest.java:623)
Caused by: java.io.IOException: Server returned HTTP response code: 500 for URL: http://127.0.0.1:5001/api/v0/dns?arg=ipfs.io
    at io.ipfs.api.APITest.dnsTest(APITest.java:623)
magik6k commented 6 years ago

This is caused by infra change which broke similar test in js-ipfs-api - https://github.com/ipfs/js-ipfs-api/issues/839. TL;DR is that you need to call resolve with -r to resolve ipfs.io now.

ianopolous commented 5 years ago

This is fixed in master now