You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by Apache Wiki <wi...@apache.org> on 2009/09/11 16:48:18 UTC

[Couchdb Wiki] Update of "Error messages" by enda

Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Couchdb Wiki" for change notification.

The following page has been changed by enda:
http://wiki.apache.org/couchdb/Error_messages

------------------------------------------------------------------------------
    * [#CrashOnStartup Crash On Startup]
   * [#RuntimeErrors Runtime Errors]
    * [#functionraisedexceptionCannotencodeundefinedvalueasJSON function raised exception (Cannot encode 'undefined' value as JSON)]
+   * [#replicationreceivedexceptionerrorbadmatchreasonerroralreadypresent replication received exception ({"error":"badmatch","reason":"{error,already_present}"})]
  
  [[Anchor(InstallationErrors)]]
  = Installation errors =
@@ -301, +302 @@

  
  While the above guard will work in most cases, it's worth bearing !JavaScript's falsy set of values in mind. Testing against a property with a value of `0` (zero), `''` (empty String), `false` or `null` will return false. If this is undesired a guard of the form `if (doc.foo !== undefined)` should do the trick.
  
+ [[Anchor(replicationreceivedexceptionerrorbadmatchreasonerroralreadypresent)]]
+ == replication received exception ({"error":"badmatch","reason":"{error,already_present}"}) ==
+ 
+ === Problem ===
+ 
+ A replication request receives the following HTTP response
+ 
+ {{{
+ HTTP/1.1 500 Internal Server Error - {"error":"badmatch","reason":"{error,already_present}"}
+ }}}
+ 
+ === Solution ===
+ 
+ Alas, there is no information about this at present - it is being looked into. Observed on a 0.9 release running on x86_64 Linux
+