-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Kinesis getRecords request is timing out. #2971
Comments
Hi @yolossn, thanks for reaching out to us. Can you provide a code sample showing the parameters being used when initializing your service client, and how you're issuing your Are you interacting with Kinesis within a given AWS region (if so, which one?), or are you using a local variant of Kinesis such as localstack or Kinesalite when you see this behavior? Where is the host that is executing Kinesis API calls via the AWS SDK for Go relative to the service endpoint being used? Can you adjust your error handling to attempt a connection to the endpoint in a way that does not use the SDK (e.g. using |
Hey @diehlaws Here is a code sample of how I initialize the client.
Yes goroutines are used to getRecords from each shard in the stream. The AWS region is |
@diehlaws Any update on this ? |
|
Please fill out the sections below to help us address your issue.
Version of AWS SDK for Go?
v1.23.5
Version of Go (
go version
)?golang:1.12.4
What issue did you see?
Sometimes the GetRecords fails with the following error message:
send request failed
The Aws original error thrown is:
Post https://kinesis.********.amazonaws.com/: dial tcp **.***.***.***:***: i/o timeout
Even after 3 retries the response is the same. Right now whenever this error occurs I have to re-establish the connection to kinesis to solve this.
Steps to reproduce
Straight forward example. Create a connection and use getRecords function to fetch the records.
If you have an runnable example, please include it.
The text was updated successfully, but these errors were encountered: