Comments (2)
This is an interesting point, I guess that's because the autoload expects the class FollowRedirects
to be mentioned before loading the file.
But the above doesn't work if you're rescuing errors defined in those classes 🤔...
Possible solution might be to define errors in a separate file that is always loaded.
I'll take a look after we're done with the 1.0 release, this could possibly be back-ported to the 0.1x series as a bugfix.
from faraday_middleware.
We have merged #247, which addresses this issue. Thanks for the report, it helps a lot!
from faraday_middleware.
Related Issues (20)
- RSpec refactoring: JRuby tests skipped using metadata HOT 1
- Deprecation warning re Faraday::Error::ClientError HOT 5
- Add support for Faraday 1.0 HOT 2
- Ship v1.0 HOT 8
- RuboCop Quest Issue HOT 4
- ruby 2.7.0 warnings HOT 2
- Reconsider SafeYAML gem dependency HOT 4
- Turn wiki into docs/ of Markdown HOT 2
- Configure RuboCop cops HOT 1
- Configure Codeclimate RuboCop support
- Gzip middleware seems mandatory when used with json response middleware? HOT 4
- Gemify Rashify middleware HOT 1
- FollowRedirects should disregard content headers HOT 1
- Linting
- CI: Improve GH Actions matrix
- Deprecate `FaradayMiddleware::Instrumentation` in favor of `Faraday::Request::Instrumentation`? HOT 2
- How to follow redirects prompted by DDoS Guards HOT 3
- faraday 2 support HOT 5
- undefined method `dependency' for ActiveCampaign::Faraday::Middleware::Request:Class (NoMethodError) HOT 3
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 faraday_middleware.