Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ADD fails #4

Closed
stacksmith opened this issue Dec 24, 2020 · 1 comment
Closed

ADD fails #4

stacksmith opened this issue Dec 24, 2020 · 1 comment

Comments

@stacksmith
Copy link

stacksmith commented Dec 24, 2020

IPFS> (add "README.txt")
NIL
"file argument 'path' is required
"

I've been fighting with this for a few hours now.
The documentation is bad/incorrect/misleading - the argument is not 'path', etc. There are a bunch of things on the Internet that are confusing. Like ipfs/kubo#5984. Several places imply that "file=@foo" is not enough and the body needs to contain another path argument or mime data... I am pretty confused now.

I tried sending a bare DRAKMA request with a handmade url and parameters, and it fails the same way. The command line works. I will try tracking down CURL examples next...

@stacksmith
Copy link
Author

stacksmith commented Dec 24, 2020

It actually works, but requires a real PATH, as in #p"common-lisp/cl-ipfs-api2/README.txt", as your example shows... I got sloppy!

While this is entirely my own fault, could you make a notation in your README for fools like me to use #p paths - to avoid them wasting a day tracking down a non-issue...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant