[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 |
| 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 [ 07/Dec/12 ] |
| Code is handling errors, but need unit test. |
| Comment by John Zablocki [ 18/Jan/13 ] |
|
This error format is out of date. Current error format is below. As part of {"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 |