This topic describes why HTTP status code 502 or 504 is returned when you use acceleration endpoints to transfer data and how to resolve the issue.
- Cause:
When data is transferred over long geographical distances, the network quality frequently changes. When the network quality changes, OSS automatically performs failovers after it detects the changes. During failovers, specific requests are affected, such as requests that are being processed. In this case, HTTP status code 502 or 504 is returned when you use acceleration endpoints to transfer data. This issue is unavoidable.
- Solution
We recommend that you add retry logic to the client to reduce the negative impact of the issue on your business.