Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

return 404 when try to get data through JIRA python plugin

Peng Zhang June 4, 2020

Problem:

I use following python script to get data from JIRA

jira = JIRA(
basic_auth=("user@xxx.com", "password"),
options={
'server': 'https://jira.com'
}
)
projects = jira.projects()

I got this exception as below:

jira.exceptions.JIRAError: JiraError HTTP 404 url: https://jira.com/rest/api/2/serverInfo

Environment:

JIRA server version: v7.13.11

Python version: 2.7

 

could you help me out?

1 answer

0 votes
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 6, 2020

The server is not where you are looking.  You'll need to give it a valid url and a valid account to connect with.

Peng Zhang June 7, 2020

I think I used the correct URL and user/pass. As they are sensitive information, so I gave something dummy here.

the problem is it returned 404 error, means no matter user/pass is correct or not, the URL doesn't exist. Any idea?

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events