首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >Rails 5-如何解决HTTP 403响应体错误?

Rails 5-如何解决HTTP 403响应体错误?
EN

Stack Overflow用户
提问于 2018-06-07 17:09:12
回答 1查看 2.7K关注 0票数 1

我正在尝试使用docker容器和前端是reactjs来运行一个rails 5项目。在运行sudo bin/houston start命令时,我收到如下错误

代码语言:javascript
复制
Firing engines...
Pulling elasticsearch (docker.elastic.co/elasticsearch/elasticsearch:5.4.0)...
ERROR: error parsing HTTP 403 response body: invalid character '<' looking for beginning of value: "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n<html>\n<head>\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">\n<meta name=\"referrer\" content=\"no-referrer\">\n    <title>Web Filter Violation</title>\n    <style type=\"text/css\">\n        html, body { margin: 0; padding: 0; font-family: Verdana, Arial, sans-serif; font-size: 10pt; }\n        h1, h2 { height: 82px; text-indent: -999em; margin: 0; padding: 0; margin: 0; }\n        div { margin: 0; padding: 0; }\n        div.header { background: url(http://url.fortinet.net:8008/XX/YY/ZZ/CI/MGPGHGPGPFGHCDPFGGOGFGEH) 0 0 repeat-x; height: 82px; }\n        div.header h1 { background: url(http://url.fortinet.net:8008/XX/YY/ZZ/CI/MGPGHGPGPFGHCDPFGGHGFHBGCHEGPFHHGG) 0 0 no-repeat; }\n        div.header h2 { background: url(http://url.fortinet.net:8008/XX/YY/ZZ/CI/MGPGHGPGPFGHCDPFGGOGFGEH) 0 -82px no-repeat; width: 160px; float: right; }\n        div.sidebar { width: 195px; height: 200px; float: left; }\n        div.main { padding: 5px; margin-left: 195px; }\n        div.buttons { margin-top: 30px; text-align: right; }\n        h3 { margin: 36px 0; font-size: 16pt; }\n        .blocked      h3 { color: #c00; }\n        .authenticate h3 { color: #36c; }\n        h2.fgd_icon { background: url(http://url.fortinet.net:8008/XX/YY/ZZ/CI/MGPGHGPGPFGHCDPFGGOGFGEH) 0 -166px repeat-x; width: 90px; height: 92px; margin: 48px auto; }\n        .blocked      h2.fgd_icon { background-position: 0 -166px; }\n        .authenticate h2.fgd_icon { background-position: -89px -166px; }\n        form { width: 300px; margin: 30px 0; }\n        label { display: block; width: 300px; margin: 5px 0; line-height: 25px; }\n        label input { width: 200px; border: 1px solid #7f9db9; height: 20px; float: right; }\n    </style>\n</head>\n<body class=\"blocked\">\n    <div class=\"header\">\n        <h2>Powered By Fortinet</h2>\n        <h1>FortiGuard Web Filtering</h1>\n    </div>\n    <div class=\"sidebar\">\n        <h2 class=\"fgd_icon\">blocked</h2>\n    </div>\n    <div class=\"main\">\n<h3>Web Page Blocked!</h3>\n<div class=\"notice\">\n    <p>You have tried to access a web page which is in violation of your internet usage policy.</p>\n    <p>\n        URL: https://docker.elastic.co/<br />\n        Category: Business\n        <br/>Client IP: 172.16.3.74\n        <br/>Server IP: 52.206.9.114\n        <br/>User name: \n        <br/>Group name: \n    </p>\n    <p>\n       \n    </p>\n    <p> To have the rating of this web page re-evaluated <a href=\"http://url.fortinet.net/rate/submit.php?id=4F023F7369116F493E247B733E653336&cat=31&loc=https://docker%2eelastic%2eco%2f&ver=8\">please click here</a>.</p>\n</div>\n    </div>\n</body>\n</html>\r\n"

如果我试图通过运行其他命令来解决问题,我会得到CA Certification错误。

如果我运行sudo bin/houston bundle,则错误类似于ERROR: No container found for web_1

请帮我解决这个问题。

EN

回答 1

Stack Overflow用户

发布于 2018-06-09 03:20:14

在docker-registry github存储库中有一个打开的问题,它看起来与您的bug非常相似。

查看:https://github.com/docker/docker-registry/issues/298

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/50737311

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档