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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

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,556,741
Community Members
 
Community Events
184
Community Groups

Scriptrunner console returning error

Scriptrunner console returning error : Failed to post update

2 answers

1 vote
WW
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
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
AUG Leaders

Atlassian Community Events