You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Import All Recipes skips most recipes on a big CookTrace, says success anyway #330
Import All Recipes only did about 50 of my recipes and skipped the rest, but the toast was green: "Imported 51, updated 0, 224 skipped". I thought some of my data was corrupt.
It's CookTrace's rate limit, 60 requests a minute. The import sends one request per recipe, so everything after ~60 gets a 429. The import counts those as skipped and moves on instead of informing the user. There's also no sign it'll follow up on them, and it doesn't.
Could it wait and retry on a 429, and warn when anything gets skipped? The fix might not only be on the NutriTrace side though. The limit lives in CookTrace and NutriTrace's federation shares it with everything else using the token, so maybe CookTrace could offer something bulk-friendly (a bigger limit for federation, or a way to fetch many recipes in one call). I'd rather ask how you want the two apps to work together than guess. Happy to PR whichever way you prefer, or do it yourself as you might have a better solution already in mind :)
Thanks! Merged #329, and Import All now waits when CookTrace's request limit is reached and carries on, with a countdown, and says which recipes it still couldn't import and why. I'm keeping CookTrace's limit as it is. It's on dev now, in the next dev release, then main if no issues come up.
Activity
fix(cooktrace): Import All waits out CookTrace's rate limit and says …
thebigjoe1 commentedon Nov 17, 2026
Thanks! Merged #329, and Import All now waits when CookTrace's request limit is reached and carries on, with a countdown, and says which recipes it still couldn't import and why. I'm keeping CookTrace's limit as it is. It's on dev now, in the next dev release, then main if no issues come up.