-
Type:
Bug
-
Resolution: Timed out
-
Priority:
Low
-
Component/s: Page - Export - PDF
-
14
-
Severity 3 - Minor
-
0
Issue Summary
If a space has pages with Lucidchart diagrams, and this space is relatively large, taking more than 5 minutes to be exported to PDF, the export may fail.
Steps to Reproduce
- Create a complex space with high quantity of pages
- Create a few pages with Lucidchart diagrams (in different positions on the page tree)
- Try to export the entire space to PDF
Expected Results
The space should be exported without problems
Actual Results
If the export takes more than 5 minutes, it may fail.
Notes
This happens because the token for the temporary lucid-chart image only lasts 5 minutes, causing a 403 http status if the conversion to PDF tries to access that image after that period:
<Error> <Code>AccessDenied</Code> <Message>Request has expired</Message> <X-Amz-Expires>300</X-Amz-Expires> <Expires>2020-11-09T19:12:32Z</Expires> <ServerTime>2020-11-09T19:18:57Z</ServerTime> <RequestId>(...)</RequestId> <HostId>(...)</HostId> </Error>
Internal errors:
stack: java.io.IOException: Server returned HTTP response code: 403 for URL: https://atlassian-lucidchart-com.s3.amazonaws.com/(...)/(...)/page-0.png
Failed to load URL: https://atlassian-lucidchart-com.s3.amazonaws.com/(...)/(...)/page-0.png?X-Amz-Security-Token=(LONG_TOKEN_STRING_&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Date=20201109T190732Z&X-Amz-SignedHeaders=host&X-Amz-Expires=300&X-Amz-Credential=(...)%2F20201109%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Signature=(...)
Workaround
Either:
- Select less pages to be exported, decreasing the export time
OR
- Don't select the pages containing Lucid-chart diagrams
OR
- Export the space to HTML, as the problem shouldn't affect it