Javascript ruby应用程序onetimesecret获取:继续获取GET/HTTP/1.1“;401,糟糕透了!你发现了一个bug。让我们知道它是怎么发生的!页

Javascript ruby应用程序onetimesecret获取:继续获取GET/HTTP/1.1“;401,糟糕透了!你发现了一个bug。让我们知道它是怎么发生的!页,javascript,ruby,rubygems,http-status-code-401,Javascript,Ruby,Rubygems,Http Status Code 401,我按照自述文件中的说明安装了,但我一直得到:哎呀!你发现了一个bug。让我们知道它是怎么发生的!第页: 我是这样开始的: bundle exec thin -e dev -R config.ru -p 7143 start /home/ec2-user/onetimesecret/onetimesecret/lib/onetime/core_ext.rb:30: warning: constant ::Fixnum is deprecated /usr/share/gems/gems/atti

我按照自述文件中的说明安装了,但我一直得到:哎呀!你发现了一个bug。让我们知道它是怎么发生的!第页: 我是这样开始的:

 bundle exec thin -e dev -R config.ru -p 7143 start
/home/ec2-user/onetimesecret/onetimesecret/lib/onetime/core_ext.rb:30: warning: constant ::Fixnum is deprecated
/usr/share/gems/gems/attic-0.5.3/lib/attic.rb:13: warning: constant ::Fixnum is deprecated
/usr/share/gems/gems/gibbler-0.8.9/lib/gibbler.rb:654: warning: constant ::Fixnum is deprecated
/usr/share/gems/gems/gibbler-0.8.9/lib/gibbler.rb:655: warning: constant ::Bignum is deprecated
2021-04-01 14:38:33 +0000 Thin web server (v1.8.0 codename Possessed Pickle)
2021-04-01 14:38:33 +0000 Maximum connections set to 1024
2021-04-01 14:38:33 +0000 Listening on 0.0.0.0:7143, CTRL+C to stop
E(1617287918):  [:limit, :homepage, "88oij9uyld9inbygnn3j648n9hcl1yt", 5]
undefined method `join' for nil:NilClass
/home/ec2-user/onetimesecret/onetimesecret/lib/onetime/app/helpers.rb:162:in `err'
/home/ec2-user/onetimesecret/onetimesecret/lib/onetime/app/helpers.rb:75:in `rescue in carefully'
/home/ec2-user/onetimesecret/onetimesecret/lib/onetime/app/helpers.rb:41:in `carefully'
/home/ec2-user/onetimesecret/onetimesecret/lib/onetime/app/web/base.rb:10:in `publically'
/home/ec2-user/onetimesecret/onetimesecret/lib/onetime/app/web.rb:14:in `index'
/usr/share/gems/gems/otto-0.4.1/lib/otto.rb:281:in `call'
/usr/share/gems/gems/otto-0.4.1/lib/otto.rb:108:in `call'
/usr/share/gems/gems/rack-2.1.4/lib/rack/reloader.rb:51:in `call'
/usr/share/gems/gems/rack-2.1.4/lib/rack/common_logger.rb:35:in `call'
/usr/share/gems/gems/rack-2.1.4/lib/rack/urlmap.rb:77:in `block in call'
/usr/share/gems/gems/rack-2.1.4/lib/rack/urlmap.rb:61:in `each'
/usr/share/gems/gems/rack-2.1.4/lib/rack/urlmap.rb:61:in `call'
/usr/share/gems/gems/thin-1.8.0/lib/thin/connection.rb:86:in `block in pre_process'
/usr/share/gems/gems/thin-1.8.0/lib/thin/connection.rb:84:in `catch'
/usr/share/gems/gems/thin-1.8.0/lib/thin/connection.rb:84:in `pre_process'
/usr/share/gems/gems/thin-1.8.0/lib/thin/connection.rb:53:in `process'
/usr/share/gems/gems/thin-1.8.0/lib/thin/connection.rb:39:in `receive_data'
/usr/share/gems/gems/eventmachine-1.2.7/lib/eventmachine.rb:195:in `run_machine'
/usr/share/gems/gems/eventmachine-1.2.7/lib/eventmachine.rb:195:in `run'
/usr/share/gems/gems/thin-1.8.0/lib/thin/backends/base.rb:75:in `start'
/usr/share/gems/gems/thin-1.8.0/lib/thin/server.rb:162:in `start'
/usr/share/gems/gems/thin-1.8.0/lib/thin/controllers/controller.rb:87:in `start'
/usr/share/gems/gems/thin-1.8.0/lib/thin/runner.rb:203:in `run_command'
/usr/share/gems/gems/thin-1.8.0/lib/thin/runner.rb:159:in `run!'
/usr/share/gems/gems/thin-1.8.0/bin/thin:6:in `<top (required)>'
/usr/local/bin/thin:23:in `load'
/usr/local/bin/thin:23:in `<top (required)>'
/usr/local/share/gems/gems/bundler-2.2.15/lib/bundler/cli/exec.rb:63:in `load'
/usr/local/share/gems/gems/bundler-2.2.15/lib/bundler/cli/exec.rb:63:in `kernel_load'
/usr/local/share/gems/gems/bundler-2.2.15/lib/bundler/cli/exec.rb:28:in `run'
/usr/local/share/gems/gems/bundler-2.2.15/lib/bundler/cli.rb:494:in `exec'
/usr/local/share/gems/gems/bundler-2.2.15/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
/usr/local/share/gems/gems/bundler-2.2.15/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
/usr/local/share/gems/gems/bundler-2.2.15/lib/bundler/vendor/thor/lib/thor.rb:392:in `dispatch'
/usr/local/share/gems/gems/bundler-2.2.15/lib/bundler/cli.rb:30:in `dispatch'
/usr/local/share/gems/gems/bundler-2.2.15/lib/bundler/vendor/thor/lib/thor/base.rb:485:in `start'
/usr/local/share/gems/gems/bundler-2.2.15/lib/bundler/cli.rb:24:in `start'
/usr/local/share/gems/gems/bundler-2.2.15/exe/bundle:49:in `block in <top (required)>'
/usr/local/share/gems/gems/bundler-2.2.15/lib/bundler/friendly_errors.rb:130:in `with_friendly_errors'
/usr/local/share/gems/gems/bundler-2.2.15/exe/bundle:37:in `<top (required)>'
/usr/local/bin/bundle:23:in `load'
/usr/local/bin/bundle:23:in `<main>'
10.0.255.25 - - [01/Apr/2021:14:38:38 +0000] "GET / HTTP/1.1" 401 - 0.0253
 new static route: /img (/img/favicon.png)
10.0.255.25 - - [01/Apr/2021:14:38:38 +0000] "GET /img/favicon.png HTTP/1.1" 200 189 0.0004
bundle exec thin-e dev-R config.ru-p 7143 start
/home/ec2 user/onetimesecret/onetimesecret/lib/onetime/core_ext.rb:30:警告:constant::Fixnum不推荐使用
/usr/share/gems/gems/attic-0.5.3/lib/attic.rb:13:警告:constant::Fixnum不推荐使用
/usr/share/gems/gems/gibbler-0.8.9/lib/gibbler.rb:654:警告:constant::Fixnum不推荐使用
/usr/share/gems/gems/gibbler-0.8.9/lib/gibbler.rb:655:警告:constant::Bignum不推荐使用
2021-04-01 14:38:33+0000瘦web服务器(v1.8.0代码名为Pickle)
2021-04-01 14:38:33+0000最大连接数设置为1024
2021-04-01 14:38:33+0000收听0.0.0.0:7143,CTRL+C停止
E(1617287918):[:限制,主页,“88oij9uyld9inbygnn3j648n9hcl1yt”,5]
nil:NilClass的未定义方法“join”
/home/ec2 user/onetimesecret/onetimesecret/lib/onetime/app/helpers.rb:162:in'err'
/home/ec2 user/onetimesecret/onetimesecret/lib/onetime/app/helpers.rb:75:in“小心救援”
/home/ec2 user/onetimesecret/onetimesecret/lib/onetime/app/helpers.rb:41:in“小心”
/home/ec2 user/onetimesecret/onetimesecret/lib/onetime/app/web/base.rb:10:在“公开”中
/home/ec2 user/onetimesecret/onetimesecret/lib/onetime/app/web.rb:14:in'index'
/usr/share/gems/gems/otto-0.4.1/lib/otto.rb:281:in'call'
/usr/share/gems/gems/otto-0.4.1/lib/otto.rb:108:in'call'
/usr/share/gems/gems/rack-2.1.4/lib/rack/reloader.rb:51:in'call'
/usr/share/gems/gems/rack-2.1.4/lib/rack/common_logger.rb:35:in'call'
/usr/share/gems/gems/rack-2.1.4/lib/rack/urlmap.rb:77:in“block-in-call”
/usr/share/gems/gems/rack-2.1.4/lib/rack/urlmap.rb:61:in'each'
/usr/share/gems/gems/rack-2.1.4/lib/rack/urlmap.rb:61:in'call'
/usr/share/gems/gems/thin-1.8.0/lib/thin/connection.rb:86:in'block in pre_进程'
/usr/share/gems/gems/thin-1.8.0/lib/thin/connection.rb:84:in'catch'
/usr/share/gems/gems/thin-1.8.0/lib/thin/connection.rb:84:in“pre_进程”
/usr/share/gems/gems/thin-1.8.0/lib/thin/connection.rb:53:在“进程”中
/usr/share/gems/gems/thin-1.8.0/lib/thin/connection.rb:39:in'receive_data'
/usr/share/gems/gems/eventmachine-1.2.7/lib/eventmachine.rb:195:in'run_machine'
/usr/share/gems/gems/eventmachine-1.2.7/lib/eventmachine.rb:195:in'run'
/usr/share/gems/gems/thin-1.8.0/lib/thin/backends/base.rb:75:in'start'
/usr/share/gems/gems/thin-1.8.0/lib/thin/server.rb:162:in'start'
/usr/share/gems/gems/thin-1.8.0/lib/thin/controllers/controller.rb:87:in'start'
/usr/share/gems/gems/thin-1.8.0/lib/thin/runner.rb:203:in'run_命令'
/usr/share/gems/gems/thin-1.8.0/lib/thin/runner.rb:159:in'run!'
/usr/share/gems/gems/thin-1.8.0/bin/thin:6:in`'
/usr/local/bin/thin:23:在“加载”中
/usr/local/bin/thin:23:in`'
/usr/local/share/gems/gems/bundler-2.2.15/lib/bundler/cli/exec.rb:63:in'load'
/usr/local/share/gems/gems/bundler-2.2.15/lib/bundler/cli/exec.rb:63:在“内核加载”中
/usr/local/share/gems/gems/bundler-2.2.15/lib/bundler/cli/exec.rb:28:在“运行”中
/usr/local/share/gems/gems/bundler-2.2.15/lib/bundler/cli.rb:494:in'exec'
/usr/local/share/gems/gems/bundler-2.2.15/lib/bundler/vendor/thor/lib/thor/command.rb:27:in'run'
/usr/local/share/gems/gems/bundler-2.2.15/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:在“invoke_命令”中
/usr/local/share/gems/gems/bundler-2.2.15/lib/bundler/vendor/thor/lib/thor.rb:392:in“dispatch”
/usr/local/share/gems/gems/bundler-2.2.15/lib/bundler/cli.rb:30:在'dispatch'中
/usr/local/share/gems/gems/bundler-2.2.15/lib/bundler/vendor/thor/lib/thor/base.rb:485:in'start'
/usr/local/share/gems/gems/bundler-2.2.15/lib/bundler/cli.rb:24:在“开始”中
/usr/local/share/gems/gems/bundler-2.2.15/exe/bundle:49:in'block-in'
/usr/local/share/gems/gems/bundler-2.2.15/lib/bundler/friendly_errors.rb:130:in“with_-friendly_errors”
/usr/local/share/gems/gems/bundler-2.2.15/exe/bundle:37:in`'
/usr/local/bin/bundle:23:在“加载”中
/usr/local/bin/bundle:23:in`'
10.0.255.25--[01/Apr/2021:14:38:38+0000]“GET/HTTP/1.1”401-0.0253
新静态路由:/img(/img/favicon.png)
10.0.255.25--[01/Apr/2021:14:38:38+0000]“GET/img/favicon.png HTTP/1.1”200 189 0.0004
我一直在想:


根据您的描述和日志,我相信:

  • ruby服务器正在运行
  • 这就是错误所在
  • 我不知道您的软件的名称,但从错误堆栈消息的顶部,我相信错误在:

    /home/ec2-user/onetimesecret/onetimesecret/lib/onetime/app/helpers.rb:162:in `err'
    
    所以打开这个文件,检查一下在第162行的
    helpers.rb中发生了什么


    通常,这可能是一个配置错误。

    谢谢,我可以看到代码行,但不知道是什么错误。请花几分钟研究ruby如何处理异常。错误路径就在那里,请从顶部(
    helpers.rb:162
    )到底部(
    web.rb:14
    )逐一检查,我相信您会找到线索。我认为,对于进一步的问题,您最好转到本产品的wiki/issue页面,创建新的问题。那里的人对你的问题更专业。
    E(1617287918):  [:limit, :homepage, "88oij9uyld9inbygnn3j648n9hcl1yt", 5]
    undefined method `join' for nil:NilClass
    /home/ec2-user/onetimesecret/onetimesecret/lib/onetime/app/helpers.rb:162:in `err'
    /home/ec2-user/onetimesecret/onetimesecret/lib/onetime/app/helpers.rb:75:in `rescue in carefully'
    /home/ec2-user/onetimesecret/onetimesecret/lib/onetime/app/helpers.rb:41:in `carefully'
    /home/ec2-user/onetimesecret/onetimesecret/lib/onetime/app/web/base.rb:10:in `publically'
    /home/ec2-user/onetimesecret/onetimesecret/lib/onetime/app/web.rb:14:in `index'
    
    /home/ec2-user/onetimesecret/onetimesecret/lib/onetime/app/helpers.rb:162:in `err'