Skip to content
This repository was archived by the owner on Sep 8, 2025. It is now read-only.
This repository was archived by the owner on Sep 8, 2025. It is now read-only.

CouchDB errors are not reported cleanly (shows up as exception from simplejson) #233

Open

Description

@djc

From wickedg...@gmail.com on April 01, 2014 20:40:08

What steps will reproduce the problem? 1. Provoke a CouchDB timeout error: https://gist.github.com/wickedgrey/d2c87e6ee1e7c695abae (Note: I have no idea how to do this consistently; see https://issues.apache.org/jira/browse/COUCHDB-2218 ).
2. Try to be reading a view when provoking the error: https://gist.github.com/geordanr/30458322a74d3c753ab9 I don't have the actual HTTP request / response data.

I would like to have the exception convey more information about what exactly went wrong (ie. what the HTTP status code was, the raw bytes received, etc.) rather than getting something coming from inside simplejson.

Original issue: http://code.google.com/p/couchdb-python/issues/detail?id=233

Activity

  1. djc commented on Jul 12, 2014

    @djc
    OwnerAuthor

    From djc.ochtman on April 01, 2014 12:38:45

    I guess we could start by wrapping the decode in a try-catch and raising another exception with better data (e.g. HTTP headers and the data flowing into the decode)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions