Hello,
I've created a plugin for Confluence Cloud. Among other things it performs some potentially time-consuming operations (matter of seconds), like loading Confluence pages and reading macro body via REST API calls.
Sometimes I see SocketTimeoutException instead of my dynamic macro output.
How it can be overcame? I see that there is some 10000 timeout in the Confluence options, but it is not editable.
I believe there is a plenty og dynamic macros, which work longer than given 5-10 seconds, so how they workaround timeout problems?
Thanks!
Community moderators have prevented the ability to post new answers.
In what language / framework are you writing your Atlassian Connect Add-on?
Atlassian Connect will wait 20 seconds before assuming that your add-on has timed out. This means that it is likely the language / framework that you are using that is the source of your timeout issues.
Hi Roert,
Thanks for your answer. We are using JAVA on Google Application Engine platform.
Database, which is used, is Google Cloud Database Storage.
Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The Google App Engine request timer (Java/Python/Go) ensures that requests have a finite lifespan and do not get caught in an infinite loop. Currently, the deadline for requests to frontend instances is 60 seconds.
(Source)
For that reason I am confused as to why you would see a timeout in around 10 seconds. I can confirm that Atlassian Connect will wait 20 seconds before timing out your iframes.
I'll pass this on to the Confluence Cloud team to see if this might be an issue they can help resolve. Cheers.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Robert,
Thanks for this info. After upgrading from trial to paid account I did not notice this problem yet, so may be the time constraints for trial and paid GAE accounts differ and now everything will go OK
Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.