ERROR:root:OpenAI API call failed: Error code:504-{returnCode:LAILGW504,errorMsg:Access timeout}

An access timeout error occurred when the agent called the tool to access the interface.

ERROR:root:OpenAI API call failed: Error code:504-{returnCode:LAILGW504,errorMsg:Access timeout}

When are you seeing this error? Are you on the latest version?

My scenario involves an agent extracting URL and input parameter information, calling a tool to access that interface, and outputting the interface response. The issue occurs during the tool output. Can the tool output function be disabled?

It cant be disabled.
https://docs.crewai.com/en/learn/force-tool-output-as-result#force-tool-output-as-result
coding_agent = Agent(
role=“Data Scientist”,
goal=“Produce amazing reports on AI”,
backstory=“You work with data and AI”,
tools=[MyCustomTool(result_as_answer=True)],
)

Can you try on the latest version 1.9.1 and also try a different model such as openai 5.2 and compare the results.