Giter Site home page Giter Site logo

Comments (6)

BenDrozdoff avatar BenDrozdoff commented on August 10, 2024

Possibly also relevant, we internally altered the constructor a bit due to the structure of Faraday::TimeoutError

module Graphlient
  module Errors
    class FaradayServerError < ServerError
      # Overriding this constructor. Timeout errors do not have a `response` member, thus we get NoMethodError on [].
      def initialize(inner_exception)
        super(inner_exception.message, inner_exception)
        @inner_exception = inner_exception
        return unless inner_exception.response.present?

        @response = inner_exception.response[:body]
        @status_code = inner_exception.response[:status]
      end
    end
  end
end

from graphlient.

ashkan18 avatar ashkan18 commented on August 10, 2024

Thanks @BenDrozdoff for reporting this 💜. Feel free to open a PR with your change or I'll try to get to this during holidays.

from graphlient.

BenDrozdoff avatar BenDrozdoff commented on August 10, 2024

NP, looks like the error I was seeing was pretty similar to #68 just with a different Faraday Error class.

from graphlient.

dblock avatar dblock commented on August 10, 2024

lostisland/faraday#1090

from graphlient.

dblock avatar dblock commented on August 10, 2024

slack-ruby/slack-ruby-client#309

from graphlient.

iMacTia avatar iMacTia commented on August 10, 2024

Hi guys, sorry if this caused some pain, that was an involuntary change.
I'm fixing this so that the change in hierarchy will be reverted.

Looking at your code, it doesn't seem like you'll need to change anything, but I'd suggest you keep the changes you've done since the changes on our side will come back in Faraday 1.0.
This way you'll be one step closer to upgrading when the time comes 😄

from graphlient.

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.