In Chapter 5 Design Documents (section A Basic Design Document), I think
curl -X PUT http://127.0.0.1:5984/basic/_design/example -data-binarymydesign.json
should be changed to
curl -X PUT http://127.0.0.1:5984/basic/_design/example --data-binary @mydesign.json
Thanks and regards,
Came to add the same note. Additionally, it doesn't hurt to put quotes around the data-binary filename argument. E.g. --data-binary "@mydesign.json"
I think this, and open issue #446, can be closed as a duplicate of resolved issues #415, #422, #428.
The error was fixed in the draft version with commit b3610d