Getting "random" ApiCallTimeoutException from SQS polling #1555
Labels
closed-for-staleness
guidance
Question that needs advice or information.
response-requested
Waiting on additional info and feedback. Will move to "closing-soon" in 10 days.
I have an ECS Fargate service running with multiple threads using long polling on multiple queues and I am facing some random error messages related to ApiCallTimeoutException.
Number of polled queues : 6
Long polling duration : 20s
Api call timeout configured : 30s
Number of polling threads by queues : 10
Expected Behavior
I should not get any timeout as my api call timeout is greater than my long polling duration.
Current Behavior
I get random (at least to me) timeouts with following stacktrace :
Steps to Reproduce (for bugs)
SQS client configuration
SQS poller thread method
Context
When exception occurs, it goes to the catch block, sleep for 1 minute and then continue polling.
I am not sure but I think I was not getting these errors when I was using V1 of the SDK.
Your Environment
The text was updated successfully, but these errors were encountered: