Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Faraday Errors hide the response body #19

Open
enriquez opened this issue Sep 16, 2024 · 0 comments
Open

Faraday Errors hide the response body #19

enriquez opened this issue Sep 16, 2024 · 0 comments

Comments

@enriquez
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant