Heads up! On March 5, starting at 4:30 PM Central Time, our community will be undergoing scheduled maintenance for a few hours. During this time, you will find the site temporarily inaccessible. Thanks for your patience. Read more.
×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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.