Rest API endpoint /api/reports/<report_id>/export/csv responds with 409

I am having troubles with export of the report. I have found out that I will always get 409, unless I will load the report through the youtrack web UI first.

{"error":"Conflict","error_description":"HTTP 409 Conflict"}

It seems that the report is not ready unless I will go to the UI. Does anyone know how to to solve this? Its pretty annoying. I am using API so that I dont have to go to the web :(

Thanks.

1 comment
Comment actions Permalink

Hi! 

I'm Sergey from the YouTrack team. 

Thank you for contacting us. I'm happy to help you. 

The error code 409 means that a sent request conflicts with the current state of the resource. For example, it can appear if the report is being recalculated. To address it, just add retries to your API requests. 

0

Please sign in to leave a comment.