Skip to content

Native iCloud apps for Windows and Linux, built in Rust. Notes, Reminders, Calendar, Contacts, Drive and Photos, offline and in sync with your iPhone.

Sign-in: Apple asking to wait says so and what to do, whatever the cause

Yashwanth Kamireddi2f2a56dc3b90
diff --git a/crates/quince-auth/src/lib.rs b/crates/quince-auth/src/lib.rs
index 7900f95..5cb9c4a 100644
--- a/crates/quince-auth/src/lib.rs
+++ b/crates/quince-auth/src/lib.rs
@@ -115,9 +115,11 @@ pub enum Error {
CoolingDown { seconds: u64 },
#[error("this needs a fresh sign-in — Apple won't accept a resumed session for it")]
ReauthRequired,
+ // Apple's 429 and its 503 on sign-in both mean "not now", whether from too many tries or
+ // its own load: say what to do, not which of the two it was.
#[error(
- "Apple is rate-limiting this account. Wait a few minutes before trying again — \
- repeated attempts risk a temporary lock"
+ "Apple asked to wait before signing in again. Try again in a few minutes: trying \
+ again right away can make Apple lock the account for a while."
)]
RateLimited,
/// Said as what to do: the keyring's own words (a D-Bus error name, a Win32 code) are for