> ## 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`。

你也可以將 `api.ayrshare.com` 用於 `/post` 端點或其他任何端點。
