解決file: Failed to copy: failed to open source object: open file failed: googleapi: Error 403

Linux服務器上,使用rclonecopy命令,嘗試下載GDrive 上的一些ZIP、APK 或EXE 文件時,會出現以下錯誤消息▼

file: Failed to copy: failed to open source object: open file failed: googleapi: Error 403: This file has been identified as malware or spam and cannot be downloaded., cannotDownloadAbusiveFile
  • 文件:複製失敗:打開源文件失敗對象:打開文件失敗:googleapi:錯誤403:此文件已被識別為惡意軟件或垃圾郵件,無法下載。 ,cannotDownloadAbusiveFile

為何會出現open file failed: googleapi: Error 403錯誤?

解決file: Failed to copy: failed to open source object: open file failed: googleapi: Error 403

  • 因為被谷歌云端硬盤識別為濫用 (惡意軟件等)的文件,只能由文件所有者下載。
  • 另外,必須包含查詢參數acknowledgeAbuse=true以指示用戶已確認下載潛在惡意軟件的風險。
  • 你的應用程序應在使用此查詢參數之前,以此交互方式警告用戶。

如何解決cannotDownloadAbusiveFile?

可能的解決方案:

如果我們添加參數acknowledgeAbuse=true,有可能繞過這個錯誤。

您可以

  • 嘗試下載濫用文件。
  • 你應該會收到一個提示,其中包括“Use the –drive-acknowledge-abuse flag to download this file
  • 嘗試使用 --drive-acknowledge-abuse標誌參數再次下載,並檢查它是否成功下載?

Rclone如何使用參數命令?請參考此教程▼

如果不能成功下載,可嘗試先在谷歌云端硬盤重命名文件為: ABC.tar

最後,陳溈亮親自測試重命名為.tar後綴的文件,可以成功下載。

擴展閱讀:

希望陳溈亮博客( https://www.chenweiliang.com/ ) 分享的《解決file: Failed to copy: failed to open source object: open file failed: googleapi: Error 403》,對您有幫助。

歡迎分享本文鏈接:https://www.chenweiliang.com/cwl-27426.html

歡迎加入陳溈亮博客的Telegram 頻道,獲取最新更新!

🔔 率先在頻道置頂目錄獲取寶貴的《ChatGPT 內容行銷AI 工具使用指南》! 🌟
📚 這份指南蘊含價值巨大,🌟難逢的機遇,切勿錯失良機! ⏰⌛💨
喜歡就分享和按贊!
您的分享和按贊,是我們持續的動力!

 

發表評論

您的電子郵箱地址不會被公開。 必填項已用 * 標註

滾動到頂部