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

Clarify what "complete" configuration block means #102

Merged
merged 1 commit into from
Sep 1, 2015

Conversation

chibicode
Copy link
Contributor

This is a documentation update suggestion - I might be the only person dumb enough to run into this error, but it might actually be helpful to someone.

Motivation: I ran into the following error when I tried to change the faraday configuration option:

NoMethodError: undefined method `[]' for nil:NilClass
from /Users/shu/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/active_rest_client-1.0.9/lib/active_rest_client/request.rb:461:in `is_json_response?'

I assumed that calling faraday_config would overwrite the default options, so I thought it'd keep default options such as faraday.headers['Accept'] = "application/json". But it turned out that it replaces the default options. It took me forever to realize this because the error was on this line, which didn't seem to have much to do with the config. I updated the README so that hopefully people won't run into the same issue.

andyjeffries added a commit that referenced this pull request Sep 1, 2015
Clarify what "complete" configuration block means
@andyjeffries andyjeffries merged commit 0996b62 into whichdigital:master Sep 1, 2015
@andyjeffries
Copy link
Contributor

LOL! Thanks @chibicode merged 👍

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

Successfully merging this pull request may close these issues.

None yet

2 participants