You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 20, 2019. It is now read-only.
Which version of fullcontact gem will include the fix for this bug? I can propose the following straightforward solution:
module Faraday
class Response::AddHeaders < Response::Middleware
def on_complete(env)
(env.body ||= {})[:http_headers] = env.response_headers
env.body
end
end
end
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi!
I'm using version
0.16.0
and I'm usingconfig.include_headers_in_response = true
configuration option. Here's the stacktrace:So it seems that when FullContact returns error (NotFound for example), then in the
on_complete
callbackenv.body
is nil.The text was updated successfully, but these errors were encountered: