All, I am using the REST API endpoint to perform a post to create a snapshot of a project in Jira. I am creating the project with Issues. When I do this my python script gets a 504 error, or timeout. I look in the audit logs and see that the snapshot creation hasn't finished yet. I can wait for the snapshot to be created and then it's listed in snapshots. I tried setting my timeout variable to None (see below) but I still get a 504. Is this a server side setting or something I can set in the code to wait until the snapshot completes creation?
snapshot_configurations = {
'name': 'Test Project Snapshot',
'description': 'Here we go',
'scope': 'projectWithIssues',
'projectKey': 'PROJ',
'includeProjectFilters': True,
'includeProjectBoards': True,
'includeProjectDashboards': True,
'options': {
'includeAttachmentFiles':True
}
}
request.post(<jira url>/rest/configuration-manager/api/1.6/snapshots, data=json.dumps(snapshot _configurations), timeout=None, headers=headers, verify=False)
Hi @Richard Snyder ,
it seems a server issue (network or proxy issue). Could you provide more information?
Fabio
Spend the day sharpening your skills in Atlassian Cloud Organization Admin or Jira Administration, then take the exam onsite. Already ready? Take one - or more - of 12 different certification exams while you’re in Anaheim at Team' 25.
Learn more
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.