-
-
Notifications
You must be signed in to change notification settings - Fork 877
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
Client incorrectly sends *.* for Accept header, instead of */* #1774
Comments
this caused JIRA cloud to return 406 error from |
Any update? |
Looks like its a bug in Atlassian this was shown. An issue has been created in the python jira library. Until its fixed upstream we add this workaround when authenticate in JIRA with user/pass. Link: https://community.developer.atlassian.com/t/http-406-status-code-from-rest-api-3-resolution-search/75381/5 Link: pycontribs/jira#1774 Suggested-by: Julianus Larson <julianus.larson@linaro.org> Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
Looks like its a bug in the jira python library. An issue has been created in Atlassian and in the python jira library. Until its fixed upstream we add this workaround when authenticate in JIRA. Link: https://community.developer.atlassian.com/t/http-406-status-code-from-rest-api-3-resolution-search/75381/5 Link: pycontribs/jira#1774 Suggested-by: Julianus Larson <julianus.larson@linaro.org> Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
Looks like its a bug in the jira python library. An issue has been created in Atlassian and in the python jira library. Until its fixed upstream we add this workaround when authenticate in JIRA. Link: https://community.developer.atlassian.com/t/http-406-status-code-from-rest-api-3-resolution-search/75381/5 Link: pycontribs/jira#1774 Suggested-by: Julianus Larson <julianus.larson@linaro.org> Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
Looks like its a bug in the jira python library. An issue has been created in Atlassian and in the python jira library. Until its fixed upstream we add this workaround when authenticate in JIRA. Link: https://community.developer.atlassian.com/t/http-406-status-code-from-rest-api-3-resolution-search/75381/5 Link: pycontribs/jira#1774 Suggested-by: Julianus Larson <julianus.larson@linaro.org> Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
Looks like its a bug in the jira python library. An issue has been created in Atlassian and in the python jira library. Until its fixed upstream we add this workaround when authenticate in JIRA. Link: https://community.developer.atlassian.com/t/http-406-status-code-from-rest-api-3-resolution-search/75381/5 Link: pycontribs/jira#1774 Suggested-by: Julianus Larson <julianus.larson@linaro.org> Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
Signed-off-by: David Black <dblack@atlassian.com>
We're experiencing a 406 error from jira.groups() and jira.group_members() as well |
You should be able to workaround the issue by creating JIRA client instances like so -> JIRA(url_to_jira_instance, basic_auth=("example", "apikeyhere"),
options={"headers": {"Accept": "application/json,*/*;q=0.9"}}) |
This appears to now be affecting pretty much all Jira endpoints. I cannot even instantiate the client any more without getting a 406 error from the |
Affecting all JIRA endpoints and returning 406 errors. Using jira pypi version 3.5.0 |
Hi everyone, just FYI we have reverted the |
We had the same issue, we added Headers, which resolved it.
|
Bug summary
The client can send the HTTP Accept header as
application/json,*.*;q=0.9
which is invalid. This should beapplication/json,*/*;q=0.9
. Note*/*
in place of the incorrect*.*
. A quick search shows that this comes from resilientsession.py line 165. Amazingly this does not currently fail when calling Jira Cloud, but the incorrect Accept header is (increasingly) likely to return a 406 error.Is there an existing issue for this?
Jira Instance type
Jira Cloud (Hosted by Atlassian)
Jira instance version
latest
jira-python version
any
Python Interpreter version
any
Which operating systems have you used?
Reproduction steps
Stack trace
Expected behaviour
Expect not to get 406 error.
Additional Context
No response
The text was updated successfully, but these errors were encountered: