-
Notifications
You must be signed in to change notification settings - Fork 295
Allow all opts for cmd:cat, to support the timeout flag #1034
Conversation
|
Is |
|
Hi, I also test it with the docker image listed above, and the timeout flag works. |
|
Thanks for this @cle1000, would you be able to add a test here https://github.com/ipfs/interface-js-ipfs-core/blob/master/src/files-regular/cat.js to ensure it's working as expected? |
|
Hi @alanshaw, I already created the test method, but I can not test it. I found out that this repro is included in the Do you have any suggestions to remove this ? I think I the error comes from an unavailable ipfs node, but I dont know how to resolve it. So when the tests in the This would be my test method: |
@alanshaw Can you give me a hint, how i should proceed? |
|
Closing as this is now supported for |
I need the timeout flag for my application, but I recognized that
js-ipfs-http-clientdoes not allow it for the commandcat. I modified that file such that it forwards the opts as it is done by thegetcommand.With this call it would be possible to set the a timeout for the
catcommand.ipfsClient.cat(`/ipfs/${YOUR_HASH}`,{timeout: '10s'}, callback)