Skip to content

Connection problem after gb build all? #295

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

Closed
roel4d opened this issue Jun 27, 2015 · 3 comments
Closed

Connection problem after gb build all? #295

roel4d opened this issue Jun 27, 2015 · 3 comments
Labels
guidance Question that needs advice or information.

Comments

@roel4d
Copy link

roel4d commented Jun 27, 2015

Not sure if this is a problem with my code, the SDK or AWS.

When I build a Go program and run it the first time, I always get the error below.
If I run the same program for a second time it works.
What could case this?

I'm using 'gb build all', but I don't think that should make a difference?

RequestError: send request failed
caused by: Get https://s3-eu-west-1.amazonaws.com/somefakebucket: dial tcp 54.231.140.88:443: ConnectEx tcp: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.

@roel4d roel4d changed the title Connection problem after go build? Connection problem after gb build all? Jun 27, 2015
@jasdel jasdel added guidance Question that needs advice or information. response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days. labels Jun 29, 2015
@jasdel
Copy link
Contributor

jasdel commented Jun 29, 2015

Hi @r03 are you able to reproduce this with any other endpoint, or simple Go program? This sounds like a local connection issues, since the connection failure is not consistent. I doubt gb is causing any issue, but it may be helpful to try the program using the standard Go build environment.

It may be helpful to take a look at the wirelog produced by the SDK. A simple request to experiment with this is:

svc := s3.New(&aws.Config{Region:  "eu-west-1", LogLevel: 1})
result, err := svc.ListBuckets(&s3.ListBucketsInput{})

@roel4d
Copy link
Author

roel4d commented Jun 29, 2015

I had the same problem with the code below.
Using go or gb didn't matter.
After disabling the antivirus (bitdefender) it seemed to be solved.
I guess the antivirus checks new exe's or something.

svc := s3.New(&aws.Config{Region: "eu-central-1", LogLevel: 1})
result, err := svc.ListBuckets(&s3.ListBucketsInput{})
if err != nil {
    fmt.Printf("ERROR %v", err)
}
for _, bucket := range result.Buckets {
    fmt.Printf("%s \n", *bucket.Name)
}

@roel4d roel4d closed this as completed Jun 29, 2015
@roel4d
Copy link
Author

roel4d commented Jun 29, 2015

It worked a couple of times after disabling the auto pilot mode in bitdefender, but now I have the same problem again. But I will leave this ticket closed because this seems like a local problem.

@diehlaws diehlaws removed response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days. labels Jan 30, 2019
skotambkar pushed a commit to skotambkar/aws-sdk-go that referenced this issue May 20, 2021
Updates the SDK's API and endpoint models to be in sync with the v1 SDK.

Fix aws#304
Fix aws#295
skotambkar pushed a commit to skotambkar/aws-sdk-go that referenced this issue May 20, 2021
Services
---
* Synced the V2 SDK with latest AWS service API definitions.
* Fixes aws#304
* Fixes aws#295

SDK Breaking changes
---
This update includes multiple breaking changes to the SDK. These updates improve the SDK's usability, consistency.

Client type name
---
The API client type is renamed to `Client` for consistency, and remove stutter between package and client type name. Using Amazon S3 API client as an example, the `s3.S3` type is renamed to `s3.Client`.

New API operation response type
---
API operations' `Request.Send` method now returns a Response type for the specific operation. The Response type wraps the operation's Output parameter, and includes a method for the response's metadata such as RequestID. The Output type is an anonymous embedded field within the Output type. If your application was passing the Output value around you'll need to extract it directly, or pass the Response type instead.

New API operation paginator utility
---
This change removes the `Paginate` method from API operation Request types, (e.g. ListObjectsRequest). A new Paginator constructor is added that can be used to page these operations. To update your application to use the new pattern, where `Paginate` was being called, replace this with the Paginator type's constructor. The usage of the returned Paginator type is unchanged.

```go
req := svc.ListObjectsRequest(params)
p := req.Paginate()
```

Is updated to to use the Paginator constructor instead of Paginate method.

```go
req := svc.ListObjectsRequest(params)
p := s3.NewListObjectsPaginator(req)
```

Other changes
---
  * Standardizes API client package name to be based on the API model's `ServiceID`.
  * Standardizes API client operation input and output type names.
  * Removes `endpoints` package's service identifier constants. These values were unstable. Each API client package contains an `EndpointsID` constant that can be used for service specific endpoint lookup.
  * Fix API endpoint lookups to use the API's modeled `EndpointsID` (aka `enpdointPrefix`). Searching for API endpoints in the `endpoints` package should use the API client package's, `EndpointsID`.

SDK Enhancements
---
*  Update CI tests to ensure all codegen changes are accounted for in PR (aws#183)
  * Updates the CI tests to ensure that any code generation changes are accounted for in the PR, and that there were no mistaken changes made without also running code generation. This change should also help ensure that code generation order is stable, and there are no ordering issues with the SDK's codegen.
  * Related aws#1966

* `service/dynamodb/expression`: Fix Builder with KeyCondition example (aws#306)
  * Fixes the ExampleBuilder_WithKeyCondition example to include the ExpressionAttributeNames member being set.
  * Fixes aws#285
* `aws/defaults`: Fix UserAgent execution environment key (aws#307)
  * Fixes the SDK's UserAgent key for the execution environment.
  * Fixes aws#276
* `private/model/api`: Improve SDK API reference doc generation (aws#309)
  * Improves the SDK's generated documentation for API client, operation, and types. This fixes several bugs in the doc generation causing poor formatting, an difficult to read reference documentation.
  * Fix aws#308
  * Related aws#2617
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
guidance Question that needs advice or information.
Projects
None yet
Development

No branches or pull requests

3 participants