Google drive api 通过Google文档列表API导出excel电子表格时转换失败

Google drive api 通过Google文档列表API导出excel电子表格时转换失败,google-drive-api,google-docs-api,Google Drive Api,Google Docs Api,我们正在使用Google Docs List API导出不同的文档类型,在尝试以xls格式请求特定电子表格时遇到以下错误: Exception in thread "main" java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeM

我们正在使用Google Docs List API导出不同的文档类型,在尝试以xls格式请求特定电子表格时遇到以下错误:

Exception in thread "main" java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoader.java:58)
Caused by: com.google.gdata.util.ServiceException: Conversion failed unexpectedly
<HTML>
<HEAD>
<TITLE>Conversion failed unexpectedly</TITLE>
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H1>Conversion failed unexpectedly</H1>
<H2>Error 500</H2>
</BODY>
</HTML>

at com.google.gdata.client.http.HttpGDataRequest.handleErrorResponse(HttpGDataRequest.java:624)
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)
我们还尝试添加旧的
format=
属性,但它没有改变行为,所以我们再次删除了它

由于GoogleDocs将被GoogleDrive取代,我们将在明年考虑转换为GoogleDrive API,这可能会起作用,但与此同时,在当前版本中能够解决这一问题将是一件好事

在我们这边,我正试图与客户联系,看看他们是否能在实际的电子表格中看到任何奇怪的东西。我将添加我找到的任何信息

谷歌上的搜索结果不多,所以我希望这里的人以前看到过这一点,并且知道可能发生这种情况的一些场景。任何人的任何意见谁看到这之前,你做了什么,以获得围绕它将是有益的

提前谢谢

fails: https://docs.google.com/feeds/download/spreadsheets/Export?key={ID}&xoauth_requestor_id={email}&exportFormat=xls
fails: https://docs.google.com/feeds/download/spreadsheets/Export?key={ID}&xoauth_requestor_id={email}&exportFormat=ods
succeeds: https://docs.google.com/feeds/download/spreadsheets/Export?key={ID}&xoauth_requestor_id={email}&exportFormat=csv