# Heroku deploy fails, installing dpl-heroku encounters faraday error

**URL:** <https://travis-ci.community/t/heroku-deploy-fails-installing-dpl-heroku-encounters-faraday-error/12563>\
**Category:** Deployment\
**Tags:** dpl-heroku\
**Created:** [January 4, 2022, 8:10pm UTC](https://travis-ci.community/t/heroku-deploy-fails-installing-dpl-heroku-encounters-faraday-error/12563 "2022-01-04T20:10:47Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![hallmanitor](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/hallmanitor/32/6869_2.png) [@hallmanitor](https://travis-ci.community/u/hallmanitor)\
**Post date:** [January 12, 2022, 7:24pm UTC](https://travis-ci.community/t/heroku-deploy-fails-installing-dpl-heroku-encounters-faraday-error/12563/6 "2022-01-12T19:24:40Z")

</div>

Confirming that I was able to get past a very similar issue:

```auto
ERROR: Error installing dpl-heroku:

1263 The last version of faraday (>= 0) to support your Ruby & RubyGems was 1.9.3. Try installing it with `gem install faraday -v 1.9.3` and then running the current command again

1264 faraday requires Ruby version >= 2.6. The current ruby version is 2.4.5.335.

```

by using `- rvm $(travis_internal_ruby) --fuzzy do ruby -S gem install faraday -v 1.8.0` as suggested by @zopz.

example here…

```auto
...
before_deploy:
  - rvm $(travis_internal_ruby) --fuzzy do ruby -S gem install faraday -v 1.8.0
deploy:
  provider: heroku
  api_key: $HEROKU_API_KEY
...

```

---

_[View the full topic](https://travis-ci.community/t/heroku-deploy-fails-installing-dpl-heroku-encounters-faraday-error/12563)._
