Near the end of the chapter, when uploading the example design document, "my design.json", this line is given:
curl -X PUT http://127.0.0.1:5984/basic/_design/example -data-binarymydesign.json
The line should be:
curl -X PUT http://localhost:5984/basic/_design/example --data-binary @mydesign.json
I think this, and open issues #446, #448 can be closed as duplicates of resolved issues #415, #422, #428.
The error was fixed in the draft version with commit b3610d