Common errors for verification
Important
End of support notice: Existing customers will be able to use Amazon QLDB until end of support on 07/31/2025. For more details, see
Migrate an Amazon QLDB Ledger to Amazon Aurora PostgreSQL
This section describes runtime errors that are thrown by Amazon QLDB for verification requests.
The following is a list of common exceptions returned by the service. Each exception includes the specific error message, followed by the API operations that can throw it, a short description, and suggestions for possible solutions.
- IllegalArgumentException
-
Message:
The provided Ion value is not valid and cannot be parsed.
API operations:
GetDigest, GetBlock, GetRevision
Make sure that you provide a valid Amazon Ion value before retrying your request.
- IllegalArgumentException
-
Message:
The provided block address is not valid.
API operations:
GetDigest, GetBlock, GetRevision
Make sure that you provide a valid block address before retrying your request. A block address is an Amazon Ion structure that has two fields:
strandId
andsequenceNo
.For example:
{strandId:"BlFTjlSXze9BIh1KOszcE3",sequenceNo:14}
- IllegalArgumentException
-
Message:
The sequence number of the provided digest tip address is beyond the strand's latest committed record.
API operations:
GetDigest, GetBlock, GetRevision
The digest tip address that you provide must have a sequence number less than or equal to the sequence number of the journal strand's latest committed record. Before retrying your request, make sure that you provide a digest tip address with a valid sequence number.
- IllegalArgumentException
-
Message:
The Strand ID of the provided block address is not valid.
API operations:
GetDigest, GetBlock, GetRevision
The block address that you provide must have a strand ID that matches the journal's strand ID. Before retrying your request, make sure that you provide a block address with a valid strand ID.
- IllegalArgumentException
-
Message:
The sequence number of the provided block address is beyond the strand's latest committed record.
API operations:
GetBlock, GetRevision
The block address that you provide must have a sequence number less than or equal to the sequence number of the strand's latest committed record. Before retrying your request, make sure that you provide a block address with a valid sequence number.
- IllegalArgumentException
-
Message:
The Strand ID of the provided block address must match the Strand ID of the provided digest tip address.
API operations:
GetBlock, GetRevision
You can only verify a document revision or block if it exists in the same journal strand as the digest that you provide.
- IllegalArgumentException
-
Message:
The sequence number of the provided block address must not be greater than the sequence number of the provided digest tip address.
API operations:
GetBlock, GetRevision
You can only verify a document revision or block if it's covered by the digest that you provide. This means that it was committed to the journal before the digest tip address.
- IllegalArgumentException
-
Message:
The provided Document ID was not found in the block at the specified block address.
API operation:
GetRevision
The document ID that you provide must exist in the block address that you provide. Before retrying your request, make sure that these two parameters are consistent.