Hi Atlassian Community,
I am using an external API within the Forge Custom UI. The API is taking more than 30 seconds to return a response, but after 25 seconds, the API call is terminated.
Any guidance or insights from the community on how to proceed with this warning in the context of preparing for Marketplace listing would be greatly appreciated.
Thanks in advance for your help!
@Oleksii Melnyk answer is correct in that most Forge function types do have a 25 second timeout by default.
However, you can use an async function to make a longer running request of up to 180 seconds. You'll need to increase your async function's timeoutSeconds to something >180 seconds. Though async functions can run for up to 15 minutes, there is a maximum request timeout of 180 seconds that will apply to any individual request.
If you need to return the result of this request to your frontend, you could have your long-running async function store the result in Forge storage, and then have your resolver poll storage for a result.
Your architecture would look something like this:
Hope this helps!
cheers,
Tim
You're likely hitting the documented 25-second execution time limit for Forge functions.
If your external API takes longer than that, the function will be forcefully terminated.
Please check it here: https://developer.atlassian.com/platform/forge/platform-quotas-and-limits/
You might want to reconsider your approach — perhaps the data can be processed in smaller chunks or be batched
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Vitheya Monikha hi! Were you able to solve your problem?
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.