dpl icon indicating copy to clipboard operation
dpl copied to clipboard

ArgumentError when deploying using Heroku API

Open nyiyui opened this issue 4 years ago • 6 comments

Hi, I'm using dpl version 2.0.2.beta.1 on GitLab CI, and when deploying to Heroku, it fails with tried to create Proc object without a block (ArgumentError)

$ gem install dpl --pre
Successfully installed regstry-1.0.15
Successfully installed cl-1.2.4
Successfully installed dpl-2.0.2.beta.1
3 gems installed
$ dpl heroku api --api_key $HEROKU_STAGING_API_KEY --app $HEROKU_APP_STAGING
Installing deployment dependencies
Installing gem dependencies: faraday (~> 0.9.2), json, netrc (~> 0.11.0), rendezvous (~> 0.1.3)
tried to create Proc object without a block (ArgumentError)

nyiyui avatar Mar 01 '21 23:03 nyiyui

I think this is because dpl depends on Faraday 0.9.2 which isn't compatible with Ruby 3.

Support for Ruby 3 was added in Faraday v0.17.3. The PR that fixed it is https://github.com/lostisland/faraday/pull/1083.

rymai avatar Apr 16 '21 13:04 rymai

@BanzaiMan Could we consider bumping the dependency on Faraday to at least the version 0.17.3?

rymai avatar Apr 16 '21 13:04 rymai

I have the same issue, I have downgraded Ruby to 2.7.5 and it is ok, it is some kind of workaround til you fixed the issue with Faraday version.

herveDarritchon avatar Nov 27 '21 15:11 herveDarritchon

Can we please fix this by bumping the Faraday version? I am happy to create a PR.

tannakartikey avatar Apr 13 '22 09:04 tannakartikey

Running into this issue when trying to deploy to GitHub using Travis on Ubuntu Jammy (22.04 LTS). Everything works on Ubuntu Focal (20.04 LTS) but its age causes other issues for our projects. I noticed multiple people reporting the same issue on the Travis CI community forums. The Travis CI helpdesk referred me to this issue / keep an eye on the changelog of this repository, but it appears pretty stale.

@murtaza-swati I noticed that you are were to merge pull requests could you perhaps answer the above question from @tannakartikey?

dennishendriksen avatar Aug 30 '23 09:08 dennishendriksen

is this project still actively maintained?

martinlevesque avatar Oct 17 '23 14:10 martinlevesque