> ## 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 Docs

> Ayrshare APIからの502 Bad Gatewayおよび504 Gateway Timeoutエラーの意味、原因、およびリクエストを安全に再試行する方法をご確認ください。

以下のような問題に遭遇した場合:

* 「Bad Gateway」メッセージを伴う502または504 HTTPエラー
* 大きなメディアファイルの投稿中のタイムアウト
* HTML形式のCloudFlareレスポンス

`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`を使用できます。
