section-11 icon indicating copy to clipboard operation
section-11 copied to clipboard

"error": "athlete_id must be in `i123456` form (with the leading `i`)

Open rdifra opened this issue 2 months ago • 1 comments

my athlete_is is stored in .sync_config.json and in my id there isn't an 'i' dowload from intervals work whithout problems.

calendar sync with push.py fail to sync

{ "success": false, "error": "athlete_id must be in i123456 form (with the leading i). Got 1123456789. Check .sync_config.json / ATHLETE_ID / --athlete-id." }

if I comment this block (from line 147)

if athlete_id.isdigit(): raise ValueError( f"athlete_id must be in i123456 form (with the leading i). " f"Got {athlete_id}. Check .sync_config.json / ATHLETE_ID / --athlete-id." )

upload is ok

rdifra avatar Sep 24 '26 12:09 rdifra

Thanks for reporting this. push.py now accepts both i-prefixed and legacy numeric athlete IDs exactly as shown in Intervals.icu Settings. Replace your locally edited copy with the updated script; removing the validation check is no longer necessary.

CrankAddict avatar Sep 24 '26 15:09 CrankAddict