代理服务器在odoo中从上游服务器收到无效响应

时间:2016-10-14 05:57:09

标签: apache proxy xmlhttprequest openerp reverse-proxy

在本地odoo服务器中的工资单模块下生成报告时 - 我收到以下错误:

Odoo

XmlHttpRequestError Proxy Error

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>502 Proxy Error</title>
</head><body>
<h1>Proxy Error</h1>
<p>The proxy server received an invalid
response from an upstream server.<br />
The proxy server could not handle the request <em><a href="/web/dataset/call_button">POST&nbsp;/web/dataset/call_button</a></em>.<p>
Reason: <strong>Error reading from remote server</strong></p></p>
<hr>
<address>Apache/2.4.7 (Ubuntu) Server at 192.168.111.188 Port 80</address>
</body></html>

2 个答案:

答案 0 :(得分:0)

当我尝试创建新数据库时,我遇到了同样的问题 odoo 8.0.17 / bitnami stack

> XmlHttpRequestError Proxy Error <!DOCTYPE HTML PUBLIC "-//IETF//DTD
> HTML 2.0//EN"> <html><head> <title>502 Proxy Error</title>
> </head><body> <h1>Proxy Error</h1> <p>The proxy server received an
> invalid response from an upstream server.<br /> The proxy server could
> not handle the request <em><a
> href="/web/database/create">POST&nbsp;/web/database/create</a></em>.<p>
> Reason: <strong>Error reading from remote server</strong></p></p>
> </body></html>

答案 1 :(得分:0)

尝试以下步骤解决XmlHttpRequestError代理错误:

  • 这是与浏览器端相关的内容,因此请使用私人窗口
  • 清除浏览器Cookie,因为有时Cookie已损坏
  • 有时页面实际加载但请求超时
  • 它适用于我试试这个,你必须用空的print语句或其他东西更新你的动作模块代码(例如 - model:employee.fine),现在再试一次它的作用!