Skip to content

Errors hidden #103

@psh-baxter

Description

@psh-baxter

Currently in unmarshall it tries to read the error into an APIError struct but if it doesn't match the error text is lost forever.

It would be nice if

  1. The APIError struct matched the error json (I'm not sure if this applies to just some error responses or what)
  2. If deserialization fails there the raw body text is available to client libraries

Error json payloads are unlikely to be large so I don't think deserialization needs to happen directly from the body reader, it could be buffered entirely up front.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions