Conversation
Signed-off-by: Haytham Abuelfutuh <[email protected]>
|
This is a reasonable idea, please let me know when you are finished. Note that moto (the CI backend) probably has a different idea of request ID compared to AWS S3, and of course there are several other S3 implementations (e.g., minio) that might have something different again. |
|
Thank you for your quick comment, @martindurant. I don't seem to find request ids in minio responses (sad). Not in the body and nor in the response headers. |
Signed-off-by: Haytham Abuelfutuh <[email protected]>
|
@martindurant mind taking a look? |
|
This could use a test; any error on moto should have both the status and ID set (non-empty). I wonder whether instead of extending the message, we should add the information to the exception object, so it only shows up for those who want it. What do you think? |
Signed-off-by: Haytham Abuelfutuh <[email protected]>
|
I briefly looked into that as well because I would like to be able to extract that information separately. But it uses the native OSError type and not sure how you feel about subclassing that? |
| # NB: we use the sync botocore client for setup | ||
| session = Session() | ||
| return session.create_client("s3", endpoint_url=endpoint_uri) | ||
| return session.create_client("s3", endpoint_url=endpoint_uri, region_name="us-east-1") |
|
Sorry I let this drop.
Yes, that's totally since, since |


Add RequestID and Http Status Code to the error object.