-
Notifications
You must be signed in to change notification settings - Fork 22
Conversation
|
||
FindProviders will return a list of peers who are able to provide the value requested. | ||
|
||
#### Bugs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe called it Known Bugs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ideally, these should be solved before this is actually merged.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
then ignore me :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any issue on go-ipfs to track this bug?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not a real bug.
1eb2bc7
to
305a651
Compare
Needs rebase |
305a651
to
2f8119c
Compare
I accidentally rebased on top of #42. :| |
Seems like something that was deprecated
In which case:
|
@whyrusleeping I'm looking at the code, and I honestly can't see how the |
@RichardLitt Marshallers are client side. Remove verbose. |
Should be good to go. Not sure if this is how these are actually supposed to look, but seems to work fine. |
Noted two main bugs: - [ ] While `verbose` is specified in the HTTP API and is used in the HTTP request, it returns no extra information in the ndjson response. - [ ] An invalid or empty key returns the same response as a normal one.
|
||
## findprovs | ||
This command can't be called directly. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What does this exactly mean? Example?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I mean you can't call curl -i "http://localhost:5001/api/v0/dht"
. It makes sense with context, and I've used this notation elsewhere. I can change it to be more blatant?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Specifically, if you try:
🐕 curl -i "http://localhost:5001/api/v0/dht"
HTTP/1.1 400 Bad Request
Access-Control-Allow-Headers: X-Stream-Output, X-Chunked-Output, X-Content-Length
Access-Control-Expose-Headers: X-Stream-Output, X-Chunked-Output, X-Content-Length
Content-Type: application/json
Server: go-ipfs/0.4.1-dev
Trailer: X-Stream-Error
Date: Tue, 19 Apr 2016 14:53:01 GMT
Transfer-Encoding: chunked
{"Message":"This command can't be called directly. Try one of its subcommands.","Code":1}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, I see. /dht
isn't an endpoint, that is ok :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep. Just pointing that out for the user.
6a8232f
to
52f7631
Compare
|
||
+ Response 200 | ||
|
||
The response has been truncated to a single ndjson object, as the responses are streamed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
LGTM :) |
Noted two main bugs:
- [ ] Whileverbose
is specified in the HTTP API and is used in the HTTP request,it returns no extra information in the ndjson response.