ChatGPT API account consistently encounters a 502 Bad Gateway error, followed by hanging until a 504 error occurs

I use curl to send data, and it takes a lot of time even though I’m only sending 20 words, then it returns the result to me. Please help me.
“{“error”:{“code”:502,“message”:“Bad gateway.”,“param”:null,“type”:“cf_bad_gateway”}}”