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.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Configuration Manager create Snapshot Rest API 504 Error

Richard Snyder November 12, 2024

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)

1 answer

0 votes
Fabio Racobaldo _Herzum_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 28, 2025

Hi @Richard Snyder ,

it seems a server issue (network or proxy issue). Could you provide more information?

Fabio

Suggest an answer

Log in or Sign up to answer