Forge timeout issue after 25 seconds

Hello,

I have an api which takes approx 30 seconds to complete .
While executing the api in forge (Jira) , it gives a timeout error after 25 seconds.

Could you pls help me in handling this issue ?

Appreciate if you can share sample code snippet / reference material

thank you

Hi Kalyan,
You can consider setting up an external system. Your Forge app can send requests to this external system and receive a token or similar identifier. This token can then be used to poll the external system for completion status after your initial call has been completed.

Hi Kalyan,

You can use Forge Async Events to process that API request as they have a timeout of 55s.

Docs: https://developer.atlassian.com/platform/forge/runtime-reference/async-events-api/
Tutorial: https://developer.atlassian.com/platform/forge/queue-events-with-async-events-api-to-import-assets/