Facing 504 in Confluence Cloud, for Content Search REST API call, even when expanding without body parameters

I am using Confluence Cloud Content Search REST API and hitting 504 http error code.(https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content/#api-wiki-rest-api-content-search-get)

Retrying the calls did not help. Retrying without body.view or body in expand parameter did not help either, the call still errors out with 504.

Can you please help suggesting what could be the possible root cause for this and suggestions to overcome this?

Hi @VivekGupta,

I tried the REST API and was able to get the expected response. To better understand your scenario, can you share the code snippet on how you called the API?


We see 500 and 502 instead of 504, but this is tracked here [CONFCLOUD-72063] The search API intermittently returns BadRequestException for valid CQL - Create and track feature requests for Atlassian products.
Is there an error message in the response?