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?
We were getting a
Faraday::BadRequestError: the server responded with status 400error 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_errorsin the Faraday connection?