Google drive api 下载文档时版本冲突异常

Google drive api 下载文档时版本冲突异常,google-drive-api,google-docs-api,Google Drive Api,Google Docs Api,当我试图从谷歌文档下载文件时,有时会出现版本冲突。我猜这是无害的,但为什么会这样 我正在使用gdata-media-1.0-1.41.3.jar com.google.gdata.util.VersionConflictException: Conflict at com.google.gdata.client.http.HttpGDataRequest.handleErrorResponse(HttpGDataRequest.java:612) at com.google.gdata.clie

当我试图从谷歌文档下载文件时,有时会出现版本冲突。我猜这是无害的,但为什么会这样

我正在使用gdata-media-1.0-1.41.3.jar

com.google.gdata.util.VersionConflictException: Conflict
at com.google.gdata.client.http.HttpGDataRequest.handleErrorResponse(HttpGDataRequest.java:612)
at com.google.gdata.client.http.GoogleGDataRequest.handleErrorResponse(GoogleGDataRequest.java:563)
at com.google.gdata.client.http.HttpGDataRequest.checkResponse(HttpGDataRequest.java:552)
at com.google.gdata.client.http.HttpGDataRequest.execute(HttpGDataRequest.java:530)
at com.google.gdata.client.http.GoogleGDataRequest.execute(GoogleGDataRequest.java:535)
at com.google.gdata.client.media.MediaService.getMediaResource(MediaService.java:234)
at com.google.gdata.client.media.MediaService.getMedia(MediaService.java:276)
at com.google.gdata.client.media.MediaService.getMedia(MediaService.java:302)
我们使用的代码如下:

DocumentListEntry entry = ... // from the feed of changed documents
MediaContent documentContent = (com.google.gdata.data.MediaContent) entry.getContent();
String uri = documentContent.getUri();
MediaContent downloadContent = new MediaContent();
downloadContent.setUri(uri);
MediaSource mediaSource = docsService.getMedia(downloadContent);
InputStream inputStream = mediaSource.getInputStream();
File file = // some file
OutputStream output = new FileOutputStream(file);
try {
    IOUtils.copy(inputStream, output);
} finally {
    IOUtils.closeQuietly(output);
    IOUtils.closeQuietly(inputStream);
}

通常我们每天在日志中有大约100个VersionConflictException。它整天都在发生,但似乎在办公时间以外最为频繁!?它发生在不同的用户和不同的文档中。通常我们每天的日志中都有大约100个VersionConflictException。它整天都在发生,但似乎在办公时间以外最为频繁!?它适用于不同的用户和不同的文档。