Skip to content

Faraday Errors hide the response body #19

Open
@enriquez

Description

@enriquez

We were getting a Faraday::BadRequestError: the server responded with status 400 error when trying to create a user. Since the exception is being thrown, we don't have an easy way to see the response body which would give us details on what we're doing wrong.

Is there a way to get an error's response body when making an API call? Maybe have an option to remove the raise_errors in the Faraday connection?

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