I am getting 429 client error when using atlassian-python-api library with the below code:
A 429 response is in response to hitting a rate limit.
https://developer.atlassian.com/cloud/jira/platform/rate-limiting/
Hi Jim,
Should we need to do any configuration in the confluence page or any code implementation needs to be done regarding rate limit.
Pls suggest
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It looks like the Confluence API has a retry mechanism built in. When you create the Confluence object, do this:
confluence = Confluence(
url=confluence_base_url,
token=personal_access_token,
backoff_and_retry=True
)
From the source code:
backoff_and_retry: Enable exponential backoff and retry. This will retry the request if there is a predefined failure. Primarily designed for Atlassian Cloud where API limits are commonly hit if doing operations on many issues, and the limits require a cooling off period. The wait period before the next request increases exponentially with each failed retry. Defaults to False.
Also consider tuning max_backoff_seconds and max_backoff_retries, but the defaults are probably fine.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.