-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Octokit.commits raises Faraday::Error::ResourceNotFound #39
Comments
Strange, doing a plain |
I'm guessing you have Faraday 0.7 installed on your system, which includes its own RaiseError class that's getting loaded before the Octokit RaiseError class. I'll work on a patch. |
No, only Faraday 0.6.1 (which is loaded) and 0.5.7 are installed. But 0.6.1 has a Will there be a new version including this fix? |
Just tried the code in
The input, i.e. At least the right |
The response may be decoded already. See issue octokit#39 for a sample of this bug.
Can you provide the repository you're trying this with? I can't seem to reproduce the error. I've tried Octokit 0.6.3 and the code from |
According to
lib/faraday/response/raise_error.rb
this should never happen.It happens for me with all my Rubies, all of them having Octokit 0.6.3 and Faraday 0.6.1 installed. So I made the mistake and rescue
Faraday::Error::ResourceNotFound
whereOctokit::NotFound
would be correct. One of my users gets theOctokit::NotFound
instead.I don't really get why
Faraday::Error::ResourceNotFound
is raised on my setup.The text was updated successfully, but these errors were encountered: