微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

无法调用应用对“ curl'http:// localhost:3564 /'-s --fail 2>&1”的错误请求derailed_benchmarks gem

如何解决无法调用应用对“ curl'http:// localhost:3564 /'-s --fail 2>&1”的错误请求derailed_benchmarks gem

我收到如下所示的错误消息:

% USE_SERVER=puma bundle exec derailed exec perf:mem_over_time
Booting: production
docking_dev already exists
Endpoint: "/"
Port: 3857
Server: "puma"
[4990] Puma starting in cluster mode...
[4990] * Version 3.7.0 (ruby 2.3.3-p222),codename: SNowy Sagebrush
[4990] * Min threads: 5,max threads: 5
[4990] * Environment: production
[4990] * Process workers: 2
[4990] * preloading application
[4990] * Listening on tcp://0.0.0.0:3000
[4990] Use Ctrl-C to stop
[4990] - Worker 0 (pid: 5013) booted,phase: 0
[4990] - Worker 1 (pid: 5014) booted,phase: 0
PID: 4990
149.67578125
Couldn't call app.
Bad request to "curl  'http://localhost:3857/' -s --fail 2>&1" 

***RESPONSE***:

""
[5014] ! Detected parent died,dying
[5013] ! Detected parent died,dying

我检查了RAILS_ENV=production rails serverRAILS_ENV=production rails console都按预期工作。我还需要检查什么才能使其正常工作。这是因为我的http://localhost:3000/网址已启用身份验证。我检查是否将force_ssl转到false。我检查了this条帖子,发现它没有帮助。

我也不知道为什么每次运行它时都会选择一些随机端口,就像在这个粘贴的端口中是3857一样。但是我的应用程序在本地使用3000端口运行。我需要做些什么以使其使用相同的端口3000吗?

P.S。为什么我从gem code了解随机端口。

解决方法

好,我修复了它。在我的情况下,当用户未登录时,根url重定向到登录页面。因此,这导致了gem错误的请求,目前看来似乎无法正确处理302。所以我修好了。。

Waiting for AWS to create an encrypted AMI for app/image in eu-west-2 (this may take up to 50 seconds)...

是的,我还必须删除at com.boxfuse.client.core.Boxfuse.run(Boxfuse.java:653) at com.boxfuse.client.commandline.Main.run(Main.java:325) at com.boxfuse.client.commandline.Main.main(Main.java:133) ,因为它也会引起错误。

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。