Skip to main content
se añadieron 1868 caracteres en el cuerpo
Origen Enlace

introducir la descripción de la imagen aquí

/home/johan/.rvm/gems/ruby-2.6.3/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/active_support.rb:79:in `block in load_missing_constant': uninitialized constant Doorkeeper::Rails::Application (NameError)
        from /home/johan/.rvm/gems/ruby-2.6.3/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/active_support.rb:8:in `without_bootsnap_cache'
        from /home/johan/.rvm/gems/ruby-2.6.3/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/active_support.rb:79:in `rescue in load_missing_constant'
        from /home/johan/.rvm/gems/ruby-2.6.3/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/active_support.rb:58:in `load_missing_constant'
        from /home/johan/Desarrollos/sample/config/application.rb:21:in `<module:Doorkeeper>'
        from /home/johan/Desarrollos/sample/config/application.rb:20:in `<top (required)>'
        from /home/johan/.rvm/gems/ruby-2.6.3/gems/spring-2.1.0/lib/spring/application.rb:92:in `require'
        from /home/johan/.rvm/gems/ruby-2.6.3/gems/spring-2.1.0/lib/spring/application.rb:92:in `preload'
        from /home/johan/.rvm/gems/ruby-2.6.3/gems/spring-2.1.0/lib/spring/application.rb:157:in `serve'
        from /home/johan/.rvm/gems/ruby-2.6.3/gems/spring-2.1.0/lib/spring/application.rb:145:in `block in run'
        from /home/johan/.rvm/gems/ruby-2.6.3/gems/spring-2.1.0/lib/spring/application.rb:139:in `loop'
        from /home/johan/.rvm/gems/ruby-2.6.3/gems/spring-2.1.0/lib/spring/application.rb:139:in `run'
        from /home/johan/.rvm/gems/ruby-2.6.3/gems/spring-2.1.0/lib/spring/application/boot.rb:19:in `<top (required)>'
        from /home/johan/.rvm/rubies/ruby-2.6.3/lib64/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
        from /home/johan/.rvm/rubies/ruby-2.6.3/lib64/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
        from -e:1:in `<main>'

introducir la descripción de la imagen aquí

/home/johan/.rvm/gems/ruby-2.6.3/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/active_support.rb:79:in `block in load_missing_constant': uninitialized constant Doorkeeper::Rails::Application (NameError)
        from /home/johan/.rvm/gems/ruby-2.6.3/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/active_support.rb:8:in `without_bootsnap_cache'
        from /home/johan/.rvm/gems/ruby-2.6.3/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/active_support.rb:79:in `rescue in load_missing_constant'
        from /home/johan/.rvm/gems/ruby-2.6.3/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/active_support.rb:58:in `load_missing_constant'
        from /home/johan/Desarrollos/sample/config/application.rb:21:in `<module:Doorkeeper>'
        from /home/johan/Desarrollos/sample/config/application.rb:20:in `<top (required)>'
        from /home/johan/.rvm/gems/ruby-2.6.3/gems/spring-2.1.0/lib/spring/application.rb:92:in `require'
        from /home/johan/.rvm/gems/ruby-2.6.3/gems/spring-2.1.0/lib/spring/application.rb:92:in `preload'
        from /home/johan/.rvm/gems/ruby-2.6.3/gems/spring-2.1.0/lib/spring/application.rb:157:in `serve'
        from /home/johan/.rvm/gems/ruby-2.6.3/gems/spring-2.1.0/lib/spring/application.rb:145:in `block in run'
        from /home/johan/.rvm/gems/ruby-2.6.3/gems/spring-2.1.0/lib/spring/application.rb:139:in `loop'
        from /home/johan/.rvm/gems/ruby-2.6.3/gems/spring-2.1.0/lib/spring/application.rb:139:in `run'
        from /home/johan/.rvm/gems/ruby-2.6.3/gems/spring-2.1.0/lib/spring/application/boot.rb:19:in `<top (required)>'
        from /home/johan/.rvm/rubies/ruby-2.6.3/lib64/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
        from /home/johan/.rvm/rubies/ruby-2.6.3/lib64/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
        from -e:1:in `<main>'
Origen Enlace

Error al probar gema Doorkeeper

Estoy intentando probar la gema Doorkeeper para implementar OAuth2 en mi API con Ruby On Rails. Sigo los pasos aquí descritos: https://doorkeeper.gitbook.io/guides/ruby-on-rails/getting-started

Paso 1: bundle add doorkeeper

A mi Gemfile se le agrega esta línea:

gem "doorkeeper", "~> 5.2"

Paso 2: bundle exec rails generate doorkeeper:install

Pero me devuelve el siguiente error:

introducir la descripción de la imagen aquí

He buscado en Internet y no logro saber por qué genera ese error. Agradezco si alguien puedo ayudarme.

Versión de Ruby: introducir la descripción de la imagen aquí

Versión de Rails: introducir la descripción de la imagen aquí