Skip to content
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

4xx errors being retried #12023

Closed
ghost opened this issue Feb 13, 2020 · 4 comments
Closed

4xx errors being retried #12023

ghost opened this issue Feb 13, 2020 · 4 comments
Assignees
Labels
authentication Pertains to authentication; to the provider itself of otherwise. bug Addresses a defect in current functionality. client-connections Pertains to the AWS Client and service connections.

Comments

@ghost
Copy link

ghost commented Feb 13, 2020

This issue was originally opened by @jschoombee as hashicorp/terraform#24097. It was migrated here as a result of the provider split. The original body of the issue is below.


Terraform Version

2020/02/13 12:02:39 [INFO] Terraform version: 0.12.7
2020/02/13 12:02:39 [INFO] Go runtime version: go1.12.9

...

Terraform Configuration Files

...

Debug Output

2020-02-13T11:59:27.839+0200 [DEBUG] plugin.terraform-provider-aws_v2.48.0_x4.exe: 2020/02/13 11:59:27 [DEBUG] [aws-sdk-go] DEBUG: Retrying Request sts/GetCallerIdentity, attempt 8
2020-02-13T11:59:27.845+0200 [DEBUG] plugin.terraform-provider-aws_v2.48.0_x4.exe: 2020/02/13 11:59:27 [DEBUG] [aws-sdk-go] DEBUG: Request sts/GetCallerIdentity Details:
2020-02-13T11:59:27.845+0200 [DEBUG] plugin.terraform-provider-aws_v2.48.0_x4.exe: ---[ REQUEST POST-SIGN ]-----------------------------
2020-02-13T11:59:27.845+0200 [DEBUG] plugin.terraform-provider-aws_v2.48.0_x4.exe: POST / HTTP/1.1
2020-02-13T11:59:27.845+0200 [DEBUG] plugin.terraform-provider-aws_v2.48.0_x4.exe: Host: sts.amazonaws.com
2020-02-13T11:59:27.845+0200 [DEBUG] plugin.terraform-provider-aws_v2.48.0_x4.exe: User-Agent: aws-sdk-go/1.28.9 (go1.13.7; windows; amd64) APN/1.0 HashiCorp/1.0 Terraform/0.12.7 (+https://www.terraform.io)
2020-02-13T11:59:27.845+0200 [DEBUG] plugin.terraform-provider-aws_v2.48.0_x4.exe: Content-Length: 43
2020-02-13T11:59:27.845+0200 [DEBUG] plugin.terraform-provider-aws_v2.48.0_x4.exe: Authorization: AWS4-HMAC-SHA256 Credential=redated/20200213/us-east-1/sts/aws4_request, SignedHeaders=content-length;content-type;host;x-amz-date;x-amz-security-token, Signature=redacted
2020-02-13T11:59:27.845+0200 [DEBUG] plugin.terraform-provider-aws_v2.48.0_x4.exe: Content-Type: application/x-www-form-urlencoded; charset=utf-8
2020-02-13T11:59:27.845+0200 [DEBUG] plugin.terraform-provider-aws_v2.48.0_x4.exe: X-Amz-Date: 20200213T095927Z
2020-02-13T11:59:27.845+0200 [DEBUG] plugin.terraform-provider-aws_v2.48.0_x4.exe: X-Amz-Security-Token: redacted
2020-02-13T11:59:27.845+0200 [DEBUG] plugin.terraform-provider-aws_v2.48.0_x4.exe: Accept-Encoding: gzip
2020-02-13T11:59:27.845+0200 [DEBUG] plugin.terraform-provider-aws_v2.48.0_x4.exe:
2020-02-13T11:59:27.845+0200 [DEBUG] plugin.terraform-provider-aws_v2.48.0_x4.exe: Action=GetCallerIdentity&Version=2011-06-15
2020-02-13T11:59:27.845+0200 [DEBUG] plugin.terraform-provider-aws_v2.48.0_x4.exe: -----------------------------------------------------
2020-02-13T11:59:29.595+0200 [DEBUG] plugin.terraform-provider-aws_v2.48.0_x4.exe: 2020/02/13 11:59:29 [DEBUG] [aws-sdk-go] DEBUG: Response sts/GetCallerIdentity Details:
2020-02-13T11:59:29.595+0200 [DEBUG] plugin.terraform-provider-aws_v2.48.0_x4.exe: ---[ RESPONSE ]--------------------------------------
2020-02-13T11:59:29.595+0200 [DEBUG] plugin.terraform-provider-aws_v2.48.0_x4.exe: HTTP/1.1 403 Forbidden
2020-02-13T11:59:29.595+0200 [DEBUG] plugin.terraform-provider-aws_v2.48.0_x4.exe: Connection: close
2020-02-13T11:59:29.595+0200 [DEBUG] plugin.terraform-provider-aws_v2.48.0_x4.exe: Content-Length: 297
2020-02-13T11:59:29.595+0200 [DEBUG] plugin.terraform-provider-aws_v2.48.0_x4.exe: Content-Type: text/xml
2020-02-13T11:59:29.595+0200 [DEBUG] plugin.terraform-provider-aws_v2.48.0_x4.exe: Date: Thu, 13 Feb 2020 09:59:28 GMT
2020-02-13T11:59:29.595+0200 [DEBUG] plugin.terraform-provider-aws_v2.48.0_x4.exe: X-Amzn-Requestid: a108d2a8-f378-41cf-858a-373fbcd82b30
2020-02-13T11:59:29.595+0200 [DEBUG] plugin.terraform-provider-aws_v2.48.0_x4.exe:
2020-02-13T11:59:29.595+0200 [DEBUG] plugin.terraform-provider-aws_v2.48.0_x4.exe:
2020-02-13T11:59:29.595+0200 [DEBUG] plugin.terraform-provider-aws_v2.48.0_x4.exe: -----------------------------------------------------
2020-02-13T11:59:29.595+0200 [DEBUG] plugin.terraform-provider-aws_v2.48.0_x4.exe: 2020/02/13 11:59:29 [DEBUG] [aws-sdk-go]
2020-02-13T11:59:29.595+0200 [DEBUG] plugin.terraform-provider-aws_v2.48.0_x4.exe:
2020-02-13T11:59:29.595+0200 [DEBUG] plugin.terraform-provider-aws_v2.48.0_x4.exe: Sender
2020-02-13T11:59:29.595+0200 [DEBUG] plugin.terraform-provider-aws_v2.48.0_x4.exe: ExpiredToken
2020-02-13T11:59:29.595+0200 [DEBUG] plugin.terraform-provider-aws_v2.48.0_x4.exe: The security token included in the request is expired
2020-02-13T11:59:29.595+0200 [DEBUG] plugin.terraform-provider-aws_v2.48.0_x4.exe:
2020-02-13T11:59:29.595+0200 [DEBUG] plugin.terraform-provider-aws_v2.48.0_x4.exe: a108d2a8-f378-41cf-858a-373fbcd82b30
2020-02-13T11:59:29.595+0200 [DEBUG] plugin.terraform-provider-aws_v2.48.0_x4.exe:
2020-02-13T11:59:29.595+0200 [DEBUG] plugin.terraform-provider-aws_v2.48.0_x4.exe: 2020/02/13 11:59:29 [DEBUG] [aws-sdk-go] DEBUG: Validate Response sts/GetCallerIdentity failed, attempt 8/25, error ExpiredToken: The security token included in the request is expired
2020-02-13T11:59:29.595+0200 [DEBUG] plugin.terraform-provider-aws_v2.48.0_x4.exe: status code: 403, request id: a108d2a8-f378-41cf-858a-373fbcd82b30

Crash Output

Expected Behavior

Actual Behavior

Steps to Reproduce

terraform apply / plan

Additional Context

References

@github-actions github-actions bot added the needs-triage Waiting for first response or review from a maintainer. label Feb 13, 2020
@jschoombee
Copy link

jschoombee commented Feb 13, 2020

Expected Behavior - not to retry on a 403 or certain 4xx (bad request) errors specifically
Actual Behavior - it is retrying

@justinretzolk justinretzolk added authentication Pertains to authentication; to the provider itself of otherwise. bug Addresses a defect in current functionality. client-connections Pertains to the AWS Client and service connections. and removed needs-triage Waiting for first response or review from a maintainer. labels Oct 27, 2021
@gdavison gdavison self-assigned this Feb 23, 2022
@YakDriver
Copy link
Member

This is closed by events. See hashicorp/aws-sdk-go-base#362 for more details.

@github-actions
Copy link

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 25, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
authentication Pertains to authentication; to the provider itself of otherwise. bug Addresses a defect in current functionality. client-connections Pertains to the AWS Client and service connections.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants