wps服务为本地私有化部署的,调用格式转换接口时报错,错误码为50000,接口文档中没有该错误码
public FormatConvertResponse syncConvert() throws Exception {
String taskId = "1";
String docUrl = "http://10.0.4.14:82/api/ehr-server/file/ftp/downloadFile?fileId=7b5d36b4-d040-494b-bbf4-383b468357d9";
String docFilename = "xx.pdf";
String target = "docx";
return WdztOperateApi.convertFile(host, taskId, docUrl, docFilename, target);
}
错误信息:
2024-06-29 22:32:55,954 [main] | c.h.w.w.s.i.ConvertServiceImplTest | test | INFO : {"code":50000,"msg":"[docs-pdf-convertor] execute error: send http request error, url = http://docs-pdf-convertor/v1/pdf/exec, error = docs-pdf-convertor: Name or service not known","request_id":"1416070494846a491edd","request_time":1719671575115,"response_time":1719671576289}(24)