您好,我在服务管理--代理配置中用官网的脚本访问外部链接,总是报错,请问是什么原因呢?[JavaScript] 纯文本查看 复制代码 fetch('http://centest.1111111111.com/gateway.html', {
method: 'post',
body: senParStr,
headers: {
"Content-Type": "application/x-www-form-urlencoded;charset=utf-8"
}
}).then((res) => {
return res.json();
}).then((json) => {
console.log(`响应的json对象是:${JSON.stringify(json, null, '\t')}`);
});
报错:com.x.program.center.jaxrs.agent.ExceptionAgentExecute: agent execute error, id:e36b39ea-5f79-4083-a6e1-303fed367b1e, name:定时, message:TypeError: Access to host class java.net.URL is not allowed or does not exist.
|