Skip to content
This repository was archived by the owner on Mar 10, 2020. It is now read-only.

Conversation

daviddias
Copy link
Contributor

The dht.findprovs endpoint is inconsistent with the other endpoints when reporting errors. It sends a message like:

argument "key" is required

While others wrap it in a JSON object with more info:

{"Message":"Invalid base58 digit ('-')","Code":0,"Type":"error"}

This breaks our parser because it is expecting that the messages are standardized.

I'm testing these with the ipfs-inactive/interface-js-ipfs-core#288

@daviddias
Copy link
Contributor Author

Failing tests are from before (PubSub and Windows)

@daviddias daviddias requested a review from alanshaw June 4, 2018 10:38
@daviddias daviddias merged commit e9f22b5 into master Jun 4, 2018
@ghost ghost removed the in progress label Jun 4, 2018
@daviddias daviddias deleted the dht-tests branch June 4, 2018 15:00
danieldaf pushed a commit to danieldaf/js-ipfs-api that referenced this pull request Jul 21, 2018
* test: testing

* test: more dht testing

* chore: update deps
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants