Skip to content

New API does not give access to errors array #7

@jorrit

Description

@jorrit

Previously, the API allowed accessing the error messages that are returned by the Zencoder API. Now, there is just an Services_Zencoder_Exception where the entire JSON response is returned as a part of the message.

Example:

Requesting an account with an existing e-mail address used to return an object with an errors property that contained an array with the string Email has already been taken.

Now, an Services_Zencoder_Exception exception is thrown with the message being Invalid HTTP status code: 422, body: {"errors":["Email has already been taken"]}. This is quite useless, compared to the previous behavior.

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