-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
How to get request id for Dynamodb and S3 calls using SDK? #215
Comments
You can get the request ID from the headers of the response: dynamodb.listTables(function(err, data) {
console.log(this.httpResponse.headers['x-amzn-requestid']);
}); |
According to this line resp.data.RequestId = resp.httpResponse.headers['x-amz-request-id'] ||
resp.httpResponse.headers['x-amzn-requestid']; you are setting the request id to |
That is only for REST JSON services. DynamoDB happens to be an RPC JSON service, and not REST based. That said, it would be trivial to copy that same code over to json.rb, which is what the RPC JSON protocol uses. |
I think request id should be a part of error which is returned by AWS-SDK, since AWS support team will not be able to help us until we provide them the request id. |
Hi @jeevankkwy. I've made the above change that adds a Let me know if you think the request ID is better off in the data property-- it's not too late to move this back, but putting it directly in the response should give it some better documentation visibility. |
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. |
I can't find the documentation anywhere. When we contacted AWS support regarding another issue they asked us to log the request id. I can't find it anywhere.
The text was updated successfully, but these errors were encountered: