Comments (6)
Strange, doing a plain ruby
fails while bundle exec ruby
works like expected with Octokit::NotFound
. The versions of Octokit and Faraday are the same for both invocations.
from octokit.rb.
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.
from octokit.rb.
No, only Faraday 0.6.1 (which is loaded) and 0.5.7 are installed. But 0.6.1 has a faraday/response/raise_error.rb
too, so I guess this might help. Will test this.
Will there be a new version including this fix?
from octokit.rb.
Just tried the code in master
giving me the following error which might be related:
/Library/Ruby/Gems/1.8/gems/multi_json-1.0.3/lib/multi_json/engines/yajl.rb:10:in `parse': input must be a string or IO (MultiJson::DecodeError)
from /Library/Ruby/Gems/1.8/gems/multi_json-1.0.3/lib/multi_json/engines/yajl.rb:10:in `decode'
from /Library/Ruby/Gems/1.8/gems/multi_json-1.0.3/lib/multi_json.rb:65:in `decode'
from /Library/Ruby/Gems/1.8/gems/octokit-0.6.3/lib/faraday/response/raise_octokit_error.rb:35:in `error_message'
from /Library/Ruby/Gems/1.8/gems/octokit-0.6.3/lib/faraday/response/raise_octokit_error.rb:16:in `on_complete'
...
The input, i.e. body
in error_message
is <#Hashie::Rash error="Not Found">
.
At least the right on_complete
method is now called.
from octokit.rb.
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 master
from octokit.rb.
It's not a repository specific error, it's a load path issue. But that has been fixed by @sferik's commit (f52bc90).
from octokit.rb.
Related Issues (20)
- [FEAT]: Add support for generating release notes content for a release HOT 1
- [BUG]: `check_runs_for_check_suite` generates invalid path if a repo string is passed in HOT 1
- Karatbars
- [FEAT]: Add support for SARIF data upload
- [MAINT]: Extend TooManyRequests test to check that the error message still differentiates between primary & secondary rate limits.
- [FEAT]: Support for codespaces and dependabot secrets HOT 1
- [DOCS]: Broken link for request-reviewers-for-a-pull-request HOT 2
- [FEAT]: Support codespaces API HOT 2
- [FEAT]: Support for Environment based Repository Secrets HOT 1
- [FEAT]: Add methods for app webhooks HOT 1
- [BUG]: Fetch a given reference uses the wrong API HOT 5
- [FEAT]: add missing endpoints HOT 2
- [BUG]: OAuth token auth applies a different Authorization header than using curl or postman HOT 6
- [DOCS]: README and yardocs refer to deleted method `#create_authorization` HOT 1
- [FEAT]: Refresh a user's access token with refresh token HOT 1
- Test issue HOT 1
- [FEAT]: Support Org Secrets HOT 1
- Get Projects by personal access token-Must have admin rights to Repository HOT 2
- [FEAT]: Provide response types with Sorbet HOT 1
- [BUG]: HTTP caching middleware returns cached responses to wrong users HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from octokit.rb.