Cannot load such file -- faraday/net_http (LoadError)

Hey, yesterday we started getting cannot load such file -- faraday/net_http (LoadError)
in the build logs for no reason, it was working with the same config file yesterday morning. We didn’t change anything from the .travis.yaml file. We tried adding -gem install faraday but it didn’t solve the problem. Here is where we install the packages and are getting the error.

      before_deploy:
        - yes | gem update --system --force
        - gem install bundler
        - gem install uri
        - gem install logger
      deploy:
        on:
          all_branches: true
        provider: releases
        token: ${GIT_TOKEN}
        skip_cleanup: true
1 Like

How did you resolve this issue?

Seems like the latest faraday release 3.4.0 broke something. I was able to fix it for now by reverting back to an older version:

before_deploy:
  - yes | gem update --system --force
  - gem install bundler
  - gem install faraday-net_http -v '3.3.0' # Fix faraday version
  - gem install uri
  - gem install logger
3 Likes

Thank you so much! It works perfectly.