Hi everyone,
I’m developing a Forge app for Jira Cloud. In my back-end function, I need to return a large response body to the Forge front end. However, due to Forge’s 5MB response size limit, I consistently encounter the following error:
{
"errors": [
{
"message": "Response must not exceed 5242880 bytes in size.",
"locations": [],
"extensions": {
"errorSource": "GRAPHQL_GATEWAY",
"statusCode": 509,
"agg": {
"severity": "NORMAL",
"ugcPiiSafe": true
},
"classification": "ResponseTooLargeException"
}
}
],
"data": {
"invokeExtension": null
},
"extensions": {
"gateway": {
"request_id": "907dd896ad3e41c5a14b5dc705be1f67",
"crossRegion": false,
"edgeCrossRegion": false
}
}
}
My use case involves retrieving a large dataset from an external system via the Forge back end, which then needs to be sent to the Forge front end.
Has anyone encountered this issue before? What are the best practices or possible workarounds to handle large responses in Forge? Any insights or suggestions would be greatly appreciated!
Thanks in advance!