Giter Site home page Giter Site logo

Comments (3)

amro avatar amro commented on August 20, 2024

Thanks @Sprachprofi. This seems like a bug — Gibbon should throw a proper error with whatever response the API provides. Unfortunately, I am traveling for work the next week and I don’t expect I’ll have time to investigate this in the meantime. I can investigate once I get back from my trip (next weekend), or I’m happy to accept a patch if you are interested in taking a look (no expectation of that on my end, to be clear).

The expected behavior is to throw a gibbon typed error that wraps whatever the API returns, but I do not want to define an error type/class for every API error.

Taking a quick look at the source, I suspect the bug is on line 114 of api_request.rb

client_error = error.is_a?(Faraday::ClientError) || error.is_a?(Faraday::Error::ClientError)

from gibbon.

Sprachprofi avatar Sprachprofi commented on August 20, 2024

Hey, thanks for the quick response. That does look like it. Fwiw, I upgraded to the latest version of Gibbon and that fixed it, so there may not be a need to do anything. People who will continue to be affected are those forced to use Gibbon 3.2.x, for example because of being locked into an earlier Ruby version. Those would need to figure out which is the last version of Faraday that still uses Faraday::Error::ClientError rather than the newer Faraday::ClientError and then manually lock to that one, because Gibbon 3.2.x does not have an upper bound on Faraday version.

from gibbon.

amro avatar amro commented on August 20, 2024

from gibbon.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.