Ibm mobilefirst MFP JavaScript HTPP适配器调用外部url

Ibm mobilefirst MFP JavaScript HTPP适配器调用外部url,ibm-mobilefirst,adapter,mobilefirst-adapters,mfp,Ibm Mobilefirst,Adapter,Mobilefirst Adapters,Mfp,我正在制作一个新的Javascript Http适配器,它假设从其他一些公共api(如api.first.org/data/v1/countries 我正在我的过程中编写下面的代码,但出现了错误 var input = { method : 'get', returnedContentType : 'json', path : 'api.first.org/data/v1/countries' }; return MFP.

我正在制作一个新的Javascript Http适配器,它假设从其他一些公共api(如
api.first.org/data/v1/countries

我正在我的过程中编写下面的代码,但出现了错误

    var input = {
        method : 'get',
        returnedContentType : 'json',
        path : 'api.first.org/data/v1/countries'
    };

    return MFP.Server.invokeHttp(input);
我得到的错误是

{
    "isSuccessful": false,
    "warnings": [],
    "errors": [
        "Unexpected error in server, see logs"
    ],
    "info": []
}
当我检查服务器日志时,错误是

[WARNING ] FWLSE0319W: Backend response content type 'text/html' did not match the expected content type 'json', continue prossesing the response. The request and response headers and body: request:
/api.first.org/data/v1/countries

response:
Not Found
Date=Thu, 03 Jun 2021 06:38:36 GMT
Content-Type=text/html
Transfer-Encoding=chunked
Connection=keep-alive

[ERROR   ] FWLST0904E: Exception was thrown while invoking procedure: getConfig in adapter: MyAdapter
Failed to read the HTTP response to: /api.first.org/data/v1/countries 
Failed to parse JSON string
<html>
<head><title>404 Not Found</title></head>
<body>
<center><h1>404 Not Found</h1></center>
<hr><center>nginx/1.19.4</center>
</body>
</html>

[警告]FWLSE0319W:后端响应内容类型“text/html”与预期的内容类型“json”不匹配,请继续处理响应。请求和响应标头和正文:请求:
/api.first.org/data/v1/countries
答复:
找不到
日期=2021年6月3日星期四06:38:36 GMT
内容类型=文本/html
传输编码=分块
连接=保持活动状态
[错误]FWLST0904E:在适配器:MyAdapter中调用过程:getConfig时引发异常
无法读取对的HTTP响应:/api.first.org/data/v1/countries
无法分析JSON字符串
404找不到
404找不到

nginx/1.19.4