This repository has been archived by the owner on Feb 12, 2024. It is now read-only.
Unable to add files with go-ipfs cli #1515
Labels
exp/expert
Having worked on the specific codebase is important
kind/bug
A bug in existing code (including security flaws)
kind/maybe-in-helia
P1
High: Likely tackled by core team if no one steps up
status/ready
Ready to be worked
v0.31.6
Linux black.travis.fyi 4.17.8-1-ARCH #1 SMP PREEMPT Wed Jul 18 09:56:24 UTC 2018 x86_64 GNU/Linux
start
Type: Bug
Severity:
High(Low? - go-ipfs cli interopt is probably optional atm)
Description:
When using the
go-ipfs
cli to add files to ajs-ipfs
daemon, and error occurs when retrieving the added objects.Steps to reproduce the error:
go-ipfs
(using v0.4.17, but v0.4.15 also shows) andjs-ipfs
installed$ jsipfs init && jsipfs daemon
$ ipfs --api=/ip4/127.0.0.1/tcp/5002 add < ipfs
This is probably going to look simple, but probably have a large impact. I'm unsure of where the proper place to fix the issue is.
Currently
interface-ipfs-core
works under the assumption ofSize
being an integer, andjs-ipfs-api
explicitly handles the conversion from string to integer at the moment.Maybe the fix is to just remove the stream converter, and convert to a string at the edge of the
js-ipfs
? Not sure how far back the string value should be plumed back.References
ipfs add
kubo#4008ipfs add
command kubo#4082The text was updated successfully, but these errors were encountered: