Error Handling in Tavily Search API

Hello

I am currently integrating the Tavily Search API into my application and facing some challenges with error handling. Specifically; I’m getting inconsistent error messages when querying large datasets. Sometimes; I receive a 504 Gateway Timeout, while other times it’s a 500 Internal Server Error. :upside_down_face:

I have already checked my request size and confirmed it’s within the API’s limits.
Could someone guide me on the best practices for handling these errors? I have referred Questions and discussions regarding the Tavily Search API msbi for help but issue not resolved

Are there specific retries; backoff strategies recommended for the Tavily Search API?

Any advice would be appreciated !

Thank you ! :slightly_smiling_face:

Hi,

Thank you for reaching out, and I apologize for the errors you’ve been experiencing. Could you please share the account email associated with your Tavily usage or provide some example queries that are causing the issue? This will help us investigate further on our end.

If you’d prefer to continue the conversation via email, feel free to contact us at support@tavily.com.

We appreciate your patience and look forward to assisting you!