Hi Square Team,
Our project is integrated with the Square Java SDK, and we’ve configured the request timeout to 20 seconds.
During runtime, we occasionally encounter exceptions where a Square API call exceeds the 20-second timeout and gets forcibly terminated. These incidents occur roughly once every few days.
What’s strange is that the same API calls typically complete in under 1 second under normal conditions. Could you help us understand what might be causing these intermittent timeouts? Are there known issues or recommended practices for handling such scenarios?
Additionally, we’ve implemented the retry mechanism as recommended by the SDK, but it does not seem to take effect when the request hits the 20-second timeout. Is this expected behavior, or is there something we may have missed in configuring retries?
We’d really appreciate your guidance on both the timeout and the retry behavior.
Best regards,
Murphy