-
Notifications
You must be signed in to change notification settings - Fork 1.2k
WIP: Make http-api endpoints as specified by the http-api-spec, for the features present in core #69
Conversation
}) | ||
|
||
it('get the version', (done) => { | ||
ctl.version((err, result) => { |
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.
@dignifiedquire I'm hitting an issue here that I would love to have your review. I implemented the http-api endpoint following the spec and you can see the test above (line 17) that it is indeed callable and returns the data as expected, however, the problem is that this js-ipfs-api call is giving me the result as a 'buffer', instead of the object correctly parsed, my first intuition was it was lacking headers, but I confirmed that I was adding the same headers as go-ipfs and still I got nothing. Any ideas? Thank you.
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.
@diasdavid there is your fix :) ipfs-inactive/js-ipfs-http-client#215
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.
sweeeet! :D Thank you @dignifiedquire :D
3767b15
to
37f91f1
Compare
7350c0a
to
101b833
Compare
101b833
to
d169279
Compare
WIP: Make http-api endpoints as specified by the http-api-spec, for the features present in core
IPFS is all `dag-pb` yet we allow passing `dag-cbor` as the format of IPLD node to use. This is likely to break anything that uses it as tools expect IPFS stuff to be `dag-pb`, possibly with `raw` leaves. Closes ipfs#67 BREAKING CHANGE: `--format` and/or `--codec` option has been removed from the CLI, the HTTP API and the core API.
Bumps [uint8arrays](https://github.com/achingbrain/uint8arrays) from 1.1.0 to 2.0.5. - [Release notes](https://github.com/achingbrain/uint8arrays/releases) - [Changelog](https://github.com/achingbrain/uint8arrays/blob/master/CHANGELOG.md) - [Commits](achingbrain/uint8arrays@v1.1.0...v2.0.5) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
This is a big PR, still a WIP, it includes: