Attachment macro may cause timeout error when the page has more than 600-ish files

XMLWordPrintable

    • 20

      Summary

      When a user tries to load a page which contains the Attachment macro with tons of attachment files, the page may show one of the errors below:

      Something's gone wrong.
      Our team has been notified. If the problem persists, please contact Atlassian Support.
      
      Error: Rendering this content exceeded the timeout of 30 seconds

      Steps to Reproduce

      1. Create a "File list" page (or add "Attachment macro" to an existing page)
      2. Upload a lot of files to the page
        • I could reproduce the timeout error with 1200 text files (you can generate dummy files by snippet.sh)
        • The upload tends to take time and fail due to "JwtAuthoriser: TokenExpiredError". If you face the error, reload the page and keep uploading the remaining files.
      3. Load the page and confirm the errors

      Expected Results

      The page with the Attachment macro successfully lists up the attachment files.

      This should be paginated to deal with large number of attachments.

      Actual Results

      When the error "Something's gone wrong" occurs, the browser console complains the timeout error as below:

      GraphQL error: Timeout error querying the remote graphql service
      

      The requests to the URLs below take more than 50s to respond:

      • /wiki/rest/graph
      • /cgraphql

      Workaround

      Currently, the only available workaround is to split the attachments into multiple pages, keeping 500 attachments or less on each page.

        1. Screenshot 2018-09-12 16.25.54.png
          360 kB
          K. Yamamoto
        2. Screenshot 2018-09-12 16.26.25.png
          594 kB
          K. Yamamoto
        3. Screenshot 2018-09-12 15.04.28.png
          705 kB
          K. Yamamoto
        4. Screenshot 2018-09-12 16.03.22.png
          720 kB
          K. Yamamoto
        5. Screenshot 2018-09-12 16.37.19.png
          1.37 MB
          K. Yamamoto
        6. snippet.sh
          0.1 kB
          K. Yamamoto
        7. Screenshot 2018-09-12 16.35.26.png
          810 kB
          K. Yamamoto
        8. image.png
          57 kB
          Guilherme T

            Assignee:
            Unassigned
            Reporter:
            K. Yamamoto
            Votes:
            6 Vote for this issue
            Watchers:
            22 Start watching this issue

              Created:
              Updated:
              Resolved: