[NCBC-1] error format changing Created: 27/Jul/11  Updated: 18/Jan/13  Resolved: 18/Jan/13

Status: Closed
Project: Couchbase .NET client library
Component/s: library
Affects Version/s: None
Fix Version/s: 1.2.1

Type: Bug Priority: Major
Reporter: Matt Ingenthron Assignee: John Zablocki (Inactive)
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   
The error format is changing, need to ensure that's updated in the client.

Rough example format:

{"total_rows":0,"rows":[

],
"errors": [{"from":"127.0.0.1:5984","reason":"Design document `_design/testfoobar` missing in database `test_db_b`."},
{"from":"http://localhost:5984/_view_merge/","reason":"Design document `_design/testfoobar` missing in database `test_db_c`."}]}

 Comments   
Comment by Matt Ingenthron [ 28/Jul/11 ]
Here's a better example of the format. It changed slightly again.

{"total_rows":0,"rows":[
],
"errors":[
{"from":"local","reason":"Design document `_design/testfoobar` missing
in database `test_db_b`."},
{"from":"http://localhost:5984/_view_merge/","reason":"Design document
`_design/testfoobar` missing in database `test_db_c`."}
]}
Comment by Matt Ingenthron [ 05/Aug/11 ]
Was this handled in 0.9?
Comment by Matt Ingenthron [ 25/Aug/11 ]
The code needs to be inspected to verify this error handling.
Comment by John Zablocki (Inactive) [ 07/Dec/12 ]
Code is handling errors, but need unit test.
Comment by John Zablocki (Inactive) [ 18/Jan/13 ]
This error format is out of date. Current error format is below. As part of NCBC-165, error handling was cleaned up.

{"error":"error","reason":"Error opening view `does_not_exist`, from set `default`, design document `_design/cities`: {not_found,\n missing_named_view}"}

http://localhost:8092/default/_design/cities/_view/does_not_exist
Generated at Sun Nov 23 13:19:32 CST 2014 using JIRA 5.2.4#845-sha1:c9f4cc41abe72fb236945343a1f485c2c844dac9.