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

uninitialized constant Dpl::Providers::Heroku::JSON (NameError) #1284

Open
maiquelcraash opened this issue Jul 30, 2024 · 3 comments
Open

uninitialized constant Dpl::Providers::Heroku::JSON (NameError) #1284

maiquelcraash opened this issue Jul 30, 2024 · 3 comments

Comments

@maiquelcraash
Copy link

Getting uninitialized constant Dpl::Providers::Heroku::JSON (NameError) error at the "Authenticate deployment" step for the Heroku DPL. This happens only when using Ruby 3 + the latest DPL version (v2.0.3-beta.5 and v2.0.4-beta).

Not sure this is related, but it seems that the json gem was removed from this DPL.

Details:

dpl.1
Install deployment dependencies
Installing deployment dependencies
Installing gem dependencies: faraday (~> 1), netrc (~> 0.11.0), rendezvous (~> 0.1.3)
dpl.2

Authenticate deployment
Authenticating ... 

uninitialized constant Dpl::Providers::Heroku::JSON (NameError)
failed to deploy
@arieltango
Copy link

Same error here.

2.19s$ rvm $(travis_internal_ruby) --fuzzy do ruby -S gem install faraday -v 1.8.0
before_deploy.2
4.37s$ rvm $(travis_internal_ruby) --fuzzy do ruby -S gem install json
before_deploy.3
1.59s$ rvm $(travis_internal_ruby) --fuzzy do ruby -S gem install dpl
before_deploy.4
1.11s$ echo 'require "json"' >> $(rvm $(travis_internal_ruby) --fuzzy do ruby -e 'puts Gem.bin_path("dpl", "dpl")')
before_deploy.5
0.07s$ ruby -rjson -e "puts 'JSON library loaded successfully'"
dpl_0
$ rvm use $(travis_internal_ruby) --fuzzy do ruby -S gem uninstall -aIx dpl
dpl.1
2.00sInstall deployment dependencies
dpl.2
1.00sAuthenticate deployment
uninitialized constant Dpl::Providers::Heroku::JSON (NameError)
failed to deploy

@klausetgeton
Copy link

Same error here

@Bielka99
Copy link

Alguna solución?

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

4 participants