Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

下载文件接口http状态码非200时报错,The result returned by the server is illegal #133

Open
shin8085 opened this issue Jul 25, 2024 · 0 comments

Comments

@shin8085
Copy link

版本: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,接着就会抛出异常

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant