> ## Documentation Index
> Fetch the complete documentation index at: https://www.ayrshare.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# 如何修复 502 Bad Gateway 与 504 错误 | Ayrshare API 文档

> 理解 Ayrshare API 返回 502 Bad Gateway 与 504 Gateway Timeout 错误的含义、原因，以及如何安全地重试请求。

如果你遇到：

* 带有 "Bad Gateway" 消息的 502 或 504 HTTP 错误
* 尝试发布大媒体文件时超时
* CloudFlare 返回的 HTML 响应

请尝试改用 `api.ayrshare.com` 作为基础端点重新发送。详细信息请参见 [/post](/apis/post/post) 端点。

`https://api.ayrshare.com/api/{endpoint name}`

例如，将 `https://app.ayrshare.com/api/post` 改为 `https://api.ayrshare.com/api/post`

你也可以对 `/post` 端点或其他任意端点使用 `api.ayrshare.com`。
