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

问题描述 投票:0回答:1

ReadyAPI 无法正常工作。我想第一次使用 ReadyAPI 测试 API。我创建了一个简单的测试用例。当我运行它时,我得到以下响应。

<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>

此外,在断言窗格中,我收到此消息:

readyapi open quote is expected for attribute http-equiv associated with an element type meta

我尝试在

ReadyAPI.vmoptions
文件的末尾添加这一行:
-Dsoapui.https.protocols=TLSv1,TLSv1.1,TLSv1.2
但我仍然遇到同样的错误。

我该如何解决?

proxy soapui web-api-testing ready-api
1个回答
0
投票

这是由于代理设置。默认情况下,它被设置为自动。所以,它使用了公司的代理设置。我将其设置为“无”(文件>首选项>代理)。现在,它工作正常。

© www.soinside.com 2019 - 2024. All rights reserved.