RcloneでProton Driveを使おうとする場合に”Invalid access token (Code=401, Status=401)“や”We are detecting potentially abusive traffic coming from your network”といったエラーが発生することがあるようです。
以前は発生しなかったようですが、最近になって出る場合があるようになってきたようです。
以下のようなエラーに加え
> ./rclone lsd --progress proton_main:someFolderName
WARN RESTY 401 GET https://mail.proton.me/api/core/v4/users: Invalid access token (Code=401, Status=401), Attempt 1
ERROR RESTY 401 GET https://mail.proton.me/api/core/v4/users: Invalid access token (Code=401, Status=401)
以下のようなエラーも発生することがあります。
We are detecting potentially abusive traffic coming from your network and have temporarily blocked logins. If you believe this is in error, please contact us here: https://proton.me/support/appeal-abuse (Code=2028, Status=422)
本記事ではこれらのエラーについて現時点で対処できる方法を紹介します。
この方法を使うことで、以下のようにエラーを回避して正常な動作をさせることができます。以下はlsdコマンドでフォルダを一覧している例です。
> [購読で表示されます]
> [購読で表示されます]
> ./rclone lsd [購読で表示されます]
-1 2022-10-17 18:02:33 -1 file3
-1 2023-09-04 19:34:57 -1 _googleFiles
-1 2022-10-14 23:43:31 -1 tmp
Transferred: 0 B / 0 B, -, 0 B/s, ETA -
Elapsed time: 6.1s
>