Skip to content

Retry-After header may be missing: need default timeout #632

Closed

Description

Description of the problem, including code/CLI snippet

The retry-after header is not always present, in which case, the client crashes.

Expected Behavior

When there isn't a retry-after header, the client uses a default retry timeout.

Actual Behavior

When there isn't a retry-after header, the client crashes

Specifications

  • python-gitlab version: 1.6.0
  • API version you are using (v3/v4): Whatever they use on gitlab.com
  • Gitlab server version (or gitlab.com): gitlab.com

Activity

  1. max-wittig commented on Nov 13, 2018

    @max-wittig
    Member

    @wvxvw You can temporary disable the obey_rate_limit feature in the meantime (which actually then causes a 429 crash, not sure if helpful)

    I will fix the feature, but I would vote against implementing a default timeout, as no one knows what the right value should be there. Could be different for every server.

    Instead the feature should just be disabled, if there is no retry-after header and cause the 429 error, which also can be caught.

  2. max-wittig commented on Nov 13, 2018

    @max-wittig
    Member

    @wvxvw good idea and you're right. The library user shouldn't have to deal with this stuff. It should just be possible to disable it. Thanks for your input.

  3. locked as resolved and limited conversation to collaborators on Nov 9, 2021
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