Errata

CouchDB: The Definitive Guide

Errata for CouchDB: The Definitive Guide

Submit your own errata for this product.

The errata list is a list of errors and their corrections that were found after the product was released.

The following errata were submitted by our customers and have not yet been approved or disproved by the author or editor. They solely represent the opinion of the customer.

Color Key: Serious technical mistake Minor technical mistake Language or formatting error Typo Question Note Update

Version Location Description Submitted by Date submitted
PDF Page 21
1st Paragraph

Where say:

Before we start, skip to Appendix D and look for your operating system. You will need to follow those instructions and get CouchDB
installed before you can progress.

Should say something like:

Before we start, skip to installation Appendixes and look for your operating system or trying installing from source on Appendix D. You will need to follow those instructions and get CouchDB
installed before you can progress.

Horacio Nuñez  Dec 29, 2010 
PDF Page 35, 36
curl output

On page 35 in curl output there is:
< Server: CouchDB/0.9.0 (Erlang OTP/R12B)

But on page 36 it is already
< Server: CouchDB/0.10.1 (Erlang OTP/R13B)

Nothing serious, but still.

vasachi  Sep 11, 2010 
PDF Page 37
3rd paragraph

Here:
"Do you remember the Accept request header and how it is set to \*/\* -> */* to express interest in any MIME type?"
I'm pretty sure that \*/\* is nowhere to be found.

vasachi  Sep 11, 2010 
Printed Page 42
last paragraph of page 41 extending to first paragraph on page 42

The example on page 41 says:

"> curl -vX PUT ... --data-binary @artwork.jpg ..."

The text on page 42 says:

"The -d@ option tells curl..."


The two options, -d and --data-binary, are roughly equivalent, but it could be confusing to someone who hasn't used curl.

Maymount  Mar 19, 2010 
Printed, PDF Page 52
1st paragraph

The command:

curl -X POST http://127.0.0.1:5984/basic -d '{}'

results in the following error:

{"error":"bad_content_type","reason":"Content-Type must be application/json"}

Should be this instead:

curl -H "Content-Type:application/json" -X POST http://127.0.0.1:5984/basic -d '{}'

Tito Ciuro  Feb 09, 2014 
PDF, Other Digital Version Page 79
Query Parameters example code

The function described in the Query Parameter example code on page 79 has the 'req' and 'doc' parameters backwards. It should be function(doc, req) { ... }

Small error, but confusing if you start with that code. :)

Benjamin Young  Jul 02, 2010 
Printed Page 84
Figure 8-2

It appears that Figure 8-2 is incomplete. Line 34 says "... see next figure ..." but there is no subsequent figure in this chapter. The first sentence in the third paragraph apparently refers to this missing text.

Jim Hopp  Dec 09, 2010 
PDF, Other Digital Version Page 84
Bottom paragraph

Both the online version of the guide and the ebook have the following text:

"As you can see, we take the opportunity in the function to strip JavaScript tags from
the form post. That regular expression is not secure..."

However there doesn't seem to be any regular expression anywhere above in the examples?

Also, chapter 8 has MANY typographical errors.

And the book on the whole seems very disjointed and unfinished.

Stewart Heckenberg  Nov 20, 2011 
PDF Page 124
First sentence of second paragraph under section "The HTML Scaffold"

http://127.0.0.1:5984/blog/_design/sofa/_show/edit
should be
http://127.0.0.1:5984/blogdb/_design/sofa/_show/edit

This is a minor mistake that can cost some time, especially since the following sentence contains
"all we have to do is wire up CouchDB..."
it's not clear that the error returned by the mis-typed url ({"error":"not_found","reason":"no_db_file"}) is even an error. I kept wondering how the ensuing snippets in the book all worked together to point the app to the right db file!

dhimes  Aug 09, 2010 
Printed, PDF, , Other Digital Version Page 124
The HTML Scaffold

The link provided:
http://127.0.0.1:5984/blog/_design/sofa/_show/edit

should be:
http://192.168.1.131:5984/sofa/_design/sofa/_show/edit

Chris Johnson  Dec 09, 2010 
Printed, PDF, , Other Digital Version Page 124
The HTML Scaffold

The link provided:
http://127.0.0.1:5984/blog/_design/sofa/_show/edit

should be:
http://127.0.0.1:5984/sofa/_design/sofa/_show/edit

Chris Johnson  Dec 09, 2010