Timeout 504 Error During Multiple File Downloads via POST Method
Written By
Anushka Tiwari
How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!
While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.
Legacy Article
You are viewing an article from our legacy "FastTrack"
publication program, made available for informational purposes. Articles
in this program were published without a requirement for independent
editing or verification and are provided"as is" without
guarantee.
Before using any information from this article, independently verify its
suitability for your situation and project.
Issue
- If a CloudFront layer is present in front of Liferay DXP, while downloading large files, might encounter a failure timeout 504 error.
- Specifically, when attempting to download multiple files, Liferay combines them into a single ZIP file, but the process fails.
- Also, Liferay uses the POST method to download multiple files. As console logs show that POST requests are used for file downloads, this prevents CloudFront from using Range GET capabilities.
- The expected behaviour is that while downloading multiple files, the GET method should be used. Or download multiple files separately rather than combining them into a single ZIP.
Environment
- Liferay DXP [All versions]
Resolution
- The expected behaviour is considered under the new feature, and hence, a feature request has been submitted. It can be tracked here: LPD-53655
Did this article resolve your issue ?