你为什么在ReadyAPI中收到502代理错误代码?

huangapple go评论45阅读模式
英文:

Why am I getting Error Code: 502 Proxy Error in ReadyAPI?

问题

ReadyAPI未能正常工作。我想第一次使用ReadyAPI测试API。我创建了一个简单的测试用例。运行时出现以下响应。

<META http-equiv=Content-Type content="text/html; charset=utf-8">
<BODY>
<TABLE><TR><TD id=L_dt_1><B>网络访问消息:无法显示页面<B></TR></TABLE>
<TABLE><TR><TD height=15></TD></TR></TABLE>
<TABLE>
<TR><TD id=L_dt_2>技术信息(供支持人员参考)
<UL>
<LI id=L_dt_3>错误代码:502 代理错误。不允许指定的安全套接字层(SSL)端口。Forefront TMG未配置为允许从此端口发出SSL请求。大多数Web浏览器使用端口443发出SSL请求。(12204)
<LI id=L_dt_4>IP地址:192.168.X.X
<LI id=L_dt_5>日期:2023年5月13日 上午6:38:14 [GMT]
<LI id=L_dt_6>服务器:myCompanyServer
<LI id=L_dt_7>来源:代理
</UL></TD></TR></TABLE></BODY></HTML>

此外,在断言窗格中,我收到了这条消息:
期望为元素类型meta关联的http-equiv属性提供readyapi打开引号

我尝试在ReadyAPI.vmoptions文件末尾添加此行:
-Dsoapui.https.protocols=TLSv1,TLSv1.1,TLSv1.2
但我仍然收到相同的错误。

我该如何修复呢?

英文:

ReadyAPI is not working properly. I want to test an API using ReadyAPI for the first time. I created a simple test case. When I run it I get the following response.

<META http-equiv=Content-Type content="text/html; charset=utf-8">
<BODY>
<TABLE><TR><TD id=L_dt_1><B>Network Access Message: The page cannot be displayed<B></TR></TABLE>
<TABLE><TR><TD height=15></TD></TR></TABLE>
<TABLE>
<TR><TD id=L_dt_2>Technical Information (for Support personnel)
<UL>
<LI id=L_dt_3>Error Code: 502 Proxy Error. The specified Secure Sockets Layer (SSL) port is not allowed. Forefront TMG is not configured to allow SSL requests from this port. Most Web browsers use port 443 for SSL requests. (12204)
<LI id=L_dt_4>IP Address: 192.168.X.X
<LI id=L_dt_5>Date: 5/13/2023 6:38:14 AM [GMT]
<LI id=L_dt_6>Server: myCompanyServer
<LI id=L_dt_7>Source: proxy
</UL></TD></TR></TABLE></BODY></HTML>

Also, in the assertion pane I get this message:
readyapi open quote is expected for attribute http-equiv associated with an element type meta

I tried adding this line at the end of ReadyAPI.vmoptions file:
-Dsoapui.https.protocols=TLSv1,TLSv1.1,TLSv1.2
But I'm still getting the same error.

How can I fix it?

答案1

得分: 0

这是由于代理设置引起的。默认情况下,它设置为自动。因此,它使用了公司的代理设置。我将其设置为"none"(文件>首选项>代理)。现在,它正常工作。

英文:

It was due to the proxy settings. By default, it was set to automatic. So, it used the proxy settings of the company. I set it to "none" (File>Preferences>Proxy). Now, it's working properly.

huangapple
  • 本文由 发表于 2023年5月13日 17:01:05
  • 转载请务必保留本文链接:https://go.coder-hub.com/76241901.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定