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

# Cách khắc phục lỗi 502 Bad Gateway & 504 | Tài liệu Ayrshare API

> Hiểu ý nghĩa của lỗi 502 Bad Gateway và 504 Gateway Timeout từ Ayrshare API, tại sao chúng xảy ra và cách thử lại yêu cầu của bạn một cách an toàn.

Nếu bạn gặp phải:

* Lỗi HTTP 502 hoặc 504 với thông báo "Bad Gateway"
* Hết thời gian chờ khi cố gắng đăng tệp phương tiện lớn
* Phản hồi CloudFlare HTML

Vui lòng thử gửi lại bài đăng bằng cách sử dụng `api.ayrshare.com` làm endpoint cơ sở của bạn. Xem endpoint [/post](/apis/post/post) để biết chi tiết.

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

Ví dụ, thay vì `https://app.ayrshare.com/api/post`, hãy sử dụng `https://api.ayrshare.com/api/post`

Bạn cũng có thể sử dụng `api.ayrshare.com` cho endpoint `/post` hoặc bất kỳ endpoint nào khác.
