-
Notifications
You must be signed in to change notification settings - Fork 297
ipfs add example failure #36
Comments
maybe similar to #34 ? |
perhaps. i was trying to write a ipfs rest API implementation for haskell https://github.com/danoctavian/haskell-ipfs-api and i got stuck on the add command because i don't understand the http request requirements. i was using this node implementation as a reference. Is there a better reference implementation at this point? or i'm better off just reading go-ipfs code and see what it expects? |
@danoctavian i think inspecting the HTTP traffic of go-ipfs will be the best way. ngrok2 does this really nicely. |
@jbenet cool, ty |
Add is not behaving properly across node and browsers, i'm going to write some tests to make sure we get this right in the coming days. |
Is this still a problem? @krl ? |
nope, seems to work again |
for example:
https://github.com/ipfs/node-ipfs-api/blob/master/examples/add.js
i am getting this error trace:
path.js:439
throw new TypeError('Arguments to path.resolve must be strings');
^
TypeError: Arguments to path.resolve must be strings
at Object.posix.resolve (path.js:439:13)
at Object.posix.relative (path.js:505:16)
at addFile (/home/dan/node_modules/ipfs-api/multipartdir.js:56:23)
at MultipartDir (/home/dan/node_modules/ipfs-api/multipartdir.js:14:5)
at getFileStream (/home/dan/node_modules/ipfs-api/index.js:151:12)
at send (/home/dan/node_modules/ipfs-api/index.js:47:16)
at Object.add (/home/dan/node_modules/ipfs-api/index.js:170:14)
at Object. (/home/dan/repos/haskell-ipfs-api/playground/contact_ipfs.js:15:6)
at Module._compile (module.js:460:26)
at Object.Module._extensions..js (module.js:478:10)
The text was updated successfully, but these errors were encountered: