0
我正在嘗試下載文檔,並且正在處理文檔列表 api。 從https://docs.google.com/feeds/default/private/full獲取 docuemnts並迭代它,創建條目以下載文檔。文件的 很大一部分被下載罰款,但他們中的一部分 拋出ResourceNotFoundException,這裏的痕跡:找不到文檔
at
com.google.gdata.client.http.HttpGDataRequest.handleErrorResponse(HttpGDataRequest.java:591)
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)
的異常文本是:
com.google.gdata.util.ResourceNotFoundException: Not Found
,隨後由谷歌的HTML頁面。
任何想法如何解決這個問題?
這些數字是Google文檔api java代碼中的行號。文檔已存在,因爲它是在所有屬於用戶的文檔的提要中返回的。 – SlavaG
您是否使用Google Drive API或現已棄用的Google Docs API? – Fumler
仍在使用不推薦使用的Google文檔API。 – SlavaG