oapi-sdk-java
oapi-sdk-java copied to clipboard
下载文件接口http状态码非200时报错,The result returned by the server is illegal
版本:2.3.0 比如输入一个错误的file_token时就会抛出上面的异常 调用方法:client.drive().v1().file().download()
// file.java 第417行
DownloadFileResp resp = UnmarshalRespUtil.unmarshalResp(httpResponse, DownloadFileResp.class);
if (resp == null) {
throw new IllegalArgumentException("The result returned by the server is illegal");
}
此时resp为null,接着就会抛出异常