Skip to content

Insee API 429 error not consistent - API rate consumption not respected #221

Closed

Description

@tgrandje

429 error code does not seem to be consistently return by every INSEE's endpoints.

As a side effect, this impacts the API's consumption rate, as the 429 error is rarely encountered (for instance on metadata API you may easily end up with a 4/5 queries / second on the average).

Activity

  1. self-assigned this
    on Oct 11, 2024
  2. hadrilec commented on Oct 14, 2024

    @hadrilec
    Contributor

    indeed, I think we should include this feature back into the package. @tgrandje would you mind making the necessary changes so that tests pass?

  3. tgrandje commented on Oct 14, 2024

    @tgrandje
    CollaboratorAuthor

    I'll try to run the tests locally (I think I had one failure I hadn't the time to debug last week): I'm still dumbfounded about those failures on github...

  4. tgrandje commented on Oct 14, 2024

    @tgrandje
    CollaboratorAuthor

    @hadrilec locally (python 3.10) I have only one failed test, and that had already been covered by @tfardet here. Do you want me to test locally on all different python versions?

    (Saddly enough, api rate consumption doesn't seem to explain why tests are freezing on github...)

  5. hadrilec commented on Oct 14, 2024

    @hadrilec
    Contributor

    alright, let's merge then?

  6. tgrandje commented on Oct 14, 2024

    @tgrandje
    CollaboratorAuthor

    I'd say yes

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

Metadata

Metadata

Assignees

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