Skip to content

Import All Recipes skips most recipes on a big CookTrace, says success anyway #330

Open

Description

@sreich

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 :)

1.5.0-dev05, self-hosted.

Activity

  1. thebigjoe1 commented on Nov 17, 2026

    @thebigjoe1
    Contributor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions