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

# Response Bad Gateway 502 or 504 Error

If you've encountered:

* A 502 or 504 HTTP error with a "Bad Gateway" message
* A timeout while trying to post a large media file
* An HTML CloudFlare response

Please try sending the post again using `api.ayrshare.com` as your base endpoint. See the [/post](/apis/post/post) endpoint for details.

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

For example, instead of `https://app.ayrshare.com/api/post`, use `https://api.ayrshare.com/api/post`

You may also use `api.ayrshare.com` for the `/post` endpoint or any other endpoint.
