Can access JIRA API with cURL but not Requests Can access JIRA API with cURL but not Requests curl curl

Can access JIRA API with cURL but not Requests


For me next code works perfectly fine :

import requestsurl = "http://localhost:8080/jira/rest/api/2/issue/TEST-1"r = requests.get(url, auth=("admin", "admin"))print r.status_codeprint r.json()

Hope that will solve your problem as well. Also, check your JIRA setup - when you install JIRA, you specify your home page. In my case it was http://localhost:8080/jira and when i tried to use some Attlassian examples and use http://localhost:8080/rest/api/v2/issue/issue it didn't work for me either. This base_url is specified in your JIRA properties file.