Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ArgumentError when deploying using Heroku API #1234

Open
nyiyui opened this issue Mar 1, 2021 · 6 comments
Open

ArgumentError when deploying using Heroku API #1234

nyiyui opened this issue Mar 1, 2021 · 6 comments

Comments

@nyiyui
Copy link

nyiyui commented Mar 1, 2021

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)
@rymai
Copy link

rymai commented Apr 16, 2021

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 lostisland/faraday#1083.

@rymai
Copy link

rymai commented Apr 16, 2021

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

@herveDarritchon
Copy link

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.

@tannakartikey
Copy link

tannakartikey commented Apr 13, 2022

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

harababurel added a commit to harababurel/gcsf that referenced this issue Jul 24, 2023
… than 3.0 on jammy. the github releases dpl provided is incompatible with ruby 3 (travis-ci/dpl#1234)
@dennishendriksen
Copy link

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?

@martinlevesque
Copy link

is this project still actively maintained?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants