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

extendedRequestId and cfId are not populated in metadata #1521

Closed
trivikr opened this issue Sep 14, 2020 · 2 comments · Fixed by #1640
Closed

extendedRequestId and cfId are not populated in metadata #1521

trivikr opened this issue Sep 14, 2020 · 2 comments · Fixed by #1640
Assignees
Labels
bug This issue is a bug. High Priority

Comments

@trivikr
Copy link
Member

trivikr commented Sep 14, 2020

Describe the bug
extendedRequestId and cfId are not populated in metadata

From past experience, quickly getting extendedRequestId and cfId helps with debugging.

SDK version number

    "@aws-sdk/client-s3-control": "1.0.0-gamma.8",
    "@aws-sdk/client-sts": "1.0.0-gamma.8",

To Reproduce (observed behavior)

Code
const { STS } = require("@aws-sdk/client-sts");
const { S3Control } = require("@aws-sdk/client-s3-control");

(async () => {
  const stsClient = new STS({});
  const s3ControlClient = new S3Control({});

  const { Account } = await stsClient.getCallerIdentity({});
  console.log(await s3ControlClient.listAccessPoints({ AccountId: Account }));
})();
Output
{
  '$metadata': {
    httpStatusCode: 200,
    httpHeaders: {
      'x-amz-id-2': 'r7rFiQubPFSqaW+cXofM2hmAYGqtbg5Jj3ctEWwt1cKzx5eFFW5lwrTa6Qn1rdYEZxrlcEQiD5E=',
      'x-amz-request-id': '2516C4C3BADE55E6',
      date: 'Mon, 14 Sep 2020 16:32:45 GMT',
      'content-length': '72',
      server: 'AmazonS3'
    },
    requestId: undefined,
    attempts: 1,
    totalRetryDelay: 0
  },
  __type: 'ListAccessPointsResult',
  AccessPointList: [],
  NextToken: undefined
}

Expected behavior
The value extendedRequestId should be populated in metadata.

@trivikr
Copy link
Member Author

trivikr commented Sep 14, 2020

This bug may be fixed by adding new middleware altogether which populates and logs metadata #1491 (comment)

@github-actions
Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in this thread.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 16, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug This issue is a bug. High Priority
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants