-
-
Notifications
You must be signed in to change notification settings - Fork 873
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
KeyError: X-RateLimit-FillRate #1463
Comments
Thanks for creating this issue. Is there any timeline for when a fix will be out for this? |
Also, perhaps its worth noting that this was introduced in 3.3.0 not 3.3.2 - 3.2.0...3.3.0#diff-0605333df4b31ca7f97b2591e3bcba9c71ea201f4a88e383316e7f6c1c478e06R286 |
Encountering this problem as well. Here's a little more for a stack trace. File "...\mycode", line 123, in my_function
self.jira.my_function(
File "...\AppData\Roaming\Python\Python39\site-packages\jira-3.4.1-py3.9.egg\jira\client.py", line 119, in wrapper
result = func(*arg_list, **kwargs)
File "...\AppData\Roaming\Python\Python39\site-packages\jira-3.4.1-py3.9.egg\jira\client.py", line 2497, in create_issue_link
return self._session.post(url, data=json.dumps(data))
File "...\appdata\local\programs\python\python39\lib\site-packages\requests\sessions.py", line 590, in post
return self.request('POST', url, data=data, json=json, **kwargs)
File "...\AppData\Roaming\Python\Python39\site-packages\jira-3.4.1-py3.9.egg\jira\resilientsession.py", line 213, in request
if is_allowed_to_retry() and self.__recoverable(
File "...\AppData\Roaming\Python\Python39\site-packages\jira-3.4.1-py3.9.egg\jira\resilientsession.py", line 286, in __recoverable
number_of_tokens_issued_per_interval = response.headers[
File "...\appdata\local\programs\python\python39\lib\site-packages\requests\structures.py", line 54, in __getitem__
return self._store[key.lower()][1]
KeyError: 'x-ratelimit-fillrate' |
In my case the only headers to go with 429 error are:
The rest of the timeout logic works fine if I remove headers access. The only thing is this headers KeyError. |
In case it's helpful, I got this error and
|
Hopefully in a release later this weekend |
Bug summary
https://github.com/pycontribs/jira/blob/main/jira/resilientsession.py#L287
As far as i can tell, JIRA cloud does not set this response header when rate limiting. The only rate limiting headers i can see are: X-Ratelimit-Limit. X-Ratelimit-Remaining, X-Ratelimit-Reset and Retry-After.
Is there an existing issue for this?
Jira Instance type
Jira Cloud (Hosted by Atlassian)
Jira instance version
No response
jira-python version
3.3.2
Python Interpreter version
3.9
Which operating systems have you used?
Reproduction steps
Stack trace
Expected behaviour
No KeyError and request is retried after 'retry-after' amount.
Additional Context
No response
The text was updated successfully, but these errors were encountered: