Proton-API-Bridge icon indicating copy to clipboard operation
Proton-API-Bridge copied to clipboard

Captcha support

Open tomekit opened this issue 1 year ago • 2 comments

It seems that configuring Proton with Rclone fails with:

2025/01/08 21:07:xx.xxxxxxx WARN RESTY 422 POST https://mail.proton.me/api/auth/v4: For security reasons, please complete CAPTCHA. If you can't pass it, please try updating your app or contact us here: https://proton.me/support/appeal-abuse (Code=9001, Status=422), Attempt 1
2025/01/08 21:07:xx.xxxxxxx ERROR RESTY 422 POST https://mail.proton.me/api/auth/v4: For security reasons, please complete CAPTCHA. If you can't pass it, please try updating your app or contact us here: https://proton.me/support/appeal-abuse (Code=9001, Status=422)
2025/01/08 21:07:xx CRITICAL: Failed to create file system for "proton:": couldn't initialize a new proton drive instance: 422 POST https://mail.proton.me/api/auth/v4: For security reasons, please complete CAPTCHA. If you can't pass it, please try updating your app or contact us here: https://proton.me/support/appeal-abuse (Code=9001, Status=422)

I haven't experienced this in the past, it seems it some security feature that was recently added by Proton.

I am aware that you might not be available to implement this, but I am creating an issue for a visibility.

tomekit avatar Jan 08 '25 21:01 tomekit

The interesting bit is that I've went to: https://drive.proton.me on a same machine, tried to logged in using browser and solved the captcha.

Screenshot from 2025-01-08 22-12-23

It seems that solving captcha whitelists the IP. Afterwards rclone started to work. Screenshot from 2025-01-08 22-21-38

Perhaps the potential improvement would be to capture this error and open user's browser so they can login and solve the captcha. Obviously this assumes that this captcha IP whitelisting behavior will remain as it is which only Proton themselves would be able to confirm.

tomekit avatar Jan 08 '25 21:01 tomekit

Facing this issue too, I tried disabling Proton Sentinel to no avail. This triggered on my machine after the service I used to automount my drive on my system restarted multiple times, probably timeoutting me in the process. Sentinel is saying this in the logs, Image even though the password is correct, I will try tomorrow and see if it's a single day timeout, but yeah, captcha support would be a good thing indeed

AzhamProdLive avatar Jan 26 '25 20:01 AzhamProdLive