We have a Connect app that is a dynamic content macro (with a plain text body type, if that matters).
Users can supply content needed by the macro either in the macro body, or by specifying a URL to fetch the content from.
When content is supplied in the macro body, we use the AP.confluence.getMacroBody()
jsapi method to retrieve it.
Recently we have had two customers report that they were getting the error “Failed to get macro details”, and in both cases we found that the size of the body content was extremely large (over 1MB).
Has Atlassian published anywhere the maximum size that is supported in the body of a macro (or, the max size supported by the getMacroBody()
function?
We would like to add some additional validation into our custom macro editor to warn users if they are likely to hit the size limit, but we’re not sure exactly what that limit is.
Hoping someone can point us in the right direction.