[PYCBC-1] error format is changing Created: 27/Jul/11  Updated: 11/May/13  Resolved: 31/Aug/12

Status: Closed
Project: Couchbase Python Client Library
Component/s: None
Affects Version/s: None
Fix Version/s: 0.8.0
Security Level: Public

Type: Bug Priority: Major
Reporter: Matt Ingenthron Assignee: Benjamin Young
Resolution: Fixed 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 Benjamin Young [ 06/Apr/12 ]
So the key difference here is the use of a keyword "local" in place of the IP addres and port combo?
Comment by Matt Ingenthron [ 24/Aug/12 ]
I guess so. Best thing is just to make sure access to the errors is available for now.
Comment by Benjamin Young [ 31/Aug/12 ]
http://review.couchbase.org/#/c/20404/

It's a bit basic, but functional.
Generated at Thu Nov 27 22:42:36 CST 2014 using JIRA 5.2.4#845-sha1:c9f4cc41abe72fb236945343a1f485c2c844dac9.