Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: show underlying cause of DynamoDB service error (#2541)
Found this issue while trying to debug LanceDB, but I think a user had reported they were having trouble debugging this feature too. Previous unhelpful error message: `LanceError(IO): WrappedSdkError: service error, /Users/willjones/.cargo/git/checkouts/lance-b31243ab5673a03e/fb84707/rust/lance-table/src/io/commit/dynamodb.rs:37:23` New error message: `LanceError(IO): WrappedSdkError: request_id: db9807d8-8d17-45d1-973e-babfaf177998, service_error: Response { status: 400, version: HTTP/1.1, headers: {"content-type": "application/json", "x-amzn-errortype": "ResourceNotFoundException", "content-length": "98", "x-amzn-requestid": "db9807d8-8d17-45d1-973e-babfaf177998", "x-amz-crc32": "137764666", "connection": "close", "date": "Thu, 27 Jun 2024 16:05:49 GMT", "server": "hypercorn-h11"}, body: SdkBody { inner: Once(Some(b"{\"__type\": \"ResourceNotFoundException\", \"message\": \"Cannot do operations on a non-existent table\"}")), retryable: true } }, /Users/willjones/Documents/lance/rust/lance-table/src/io/commit/dynamodb.rs:38:23`
- Loading branch information