-
Notifications
You must be signed in to change notification settings - Fork 653
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
ec2..amazonaws.com: no such host #2437
Comments
I'm seeing a similar error with the S3 download manager. getObjReq := s3.GetObjectInput{
Bucket: aws.String(bucket),
Key: aws.String(key),
}
_, err = downloader.Download(ctx, fd, &getObjReq)
if err != nil {
log.Infof(ctx, "Couldn't download file: %v", err.Error())
return err
}
Using: github.com/aws/aws-sdk-go-v2/feature/s3/manager v1.15.9 github.com/aws/aws-sdk-go-v2/service/s3 v1.47.7 This is in a Go binary in a Docker container from a |
you find any solution? or its due to aws! |
@Horiodino in my case the AWS_REGION environment variable wasn't set on the running container. I proved this by going from awsConfig, err := config.LoadDefaultConfig(ctx) to awsConfig, err := config.LoadDefaultConfig(ctx, config.WithRegion("us-east-1")) And the request was able to be sent. |
|
Describe the bug
I was working on an issue and using aws-sdk-go-v2, I was using Linux previously and everything working fine but now I shifted to windows and getting this error message:
Expected Behavior
should accept Api calls.
Current Behavior
returns http error code 0
Reproduction Steps
use windows-10 and try to access list of Aws-regions.
Possible Solution
may be the
https://ec2..amazonaws.com
should be using one.
and then everything works!Additional Information/Context
No response
SDK version used
aws-sdk-go-v2
Environment details (Version of Go (
go version
)? OS name and version, etc.)windows-10
The text was updated successfully, but these errors were encountered: