Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,364,778
Community Members
 
Community Events
168
Community Groups

Scriptrunner console returning error

Scriptrunner console returning error : Failed to post update

2 answers

1 vote
WW Rising Star Mar 16, 2022

I see that Adaptavist had an issue, SRPLAT-3, which they resolved (13/Dec/19) because they could not reproduce the problem. However, they ran a script that took 5min. I wish they'd run one that takes a lot longer than that in order to get an accurate view of what happens.

It doesn't seem to time out after a specific, repeatable point, even when running the same script. There seem to be a lot of factors including traffic in the application. Sometimes the script finishes after the "Failed to post update" message happens, and sometimes it doesn't.

The suggestion in that ticket of writing to the log only adds to the time it takes to run the script, Even though it's small, it adds up. So, that's not really a great option for long running scripts. I make my scripts as fast as I can make them, but there are limitations to what is available in different scenarios.

Adaptavist, if you come across this, please look into it again. It's still happening.

I can reproduce it over and over again. I'm trying to narrow it down to a minimal set of code that I can provide to Adaptavist. My script is calling Confluence REST APIs from the Console, on Confluence Data Center.

Chrome Browser tools suggest that the server returns a 504 when I get the 'Failed to post update' error. This must be called by Adaptavist when you press the RUN button.

Screen Shot 2022-07-21 at 10.12.37 AM.png

The payload to this call contains my console script.

 

It could very well be due to a script taking more than 5 minutes to run...this is just what I'm seeing:

Screen Shot 2022-07-21 at 10.16.41 AM.png

still trying to narrow it down...

Like WW likes this

I am getting the same error on file scripts that worked last month.   No changes to the scripts that I am aware of.  Hope somebody from Adaptavist responds.

My scripts are "custom field" cleans up that use the "childIssue" method to find all children of an Initiative or a Feature in our Portfolio project and push data down to all issues that are linked to them.

Was hoping not to have to dig to deep into them, but if there is no answer from Adaptavist soon ............

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS

Atlassian Community Events