{
  "about": "py-algorand-sdk client-side errors reproduced locally.",
  "sdkVersion": "2.12.0",
  "capturedOn": "2026-12-03",
  "errors": [
    {
      "slug": "wrongmnemoniclengtherror-mnemonic-length-must-be-25",
      "question": "py-algorand-sdk WrongMnemonicLengthError: \"mnemonic length must be 25\"",
      "exactMessage": "WrongMnemonicLengthError: mnemonic length must be 25",
      "answer": "The recovery phrase does not have exactly 25 words.",
      "cause": "Captured by passing the first 24 words of a valid mnemonic to mnemonic.to_private_key.",
      "fix": [
        "Count the words after .split(); check for a missing word, a line break or extra quotes from an env var.",
        "Normalise whitespace: \" \".join(m.split())."
      ],
      "source": "captured locally with py-algorand-sdk 2.12.0 on 2026-12-03"
    },
    {
      "slug": "valueerror-list-of-words-for-mnemonic",
      "question": "py-algorand-sdk ValueError printing a list of words when decoding a mnemonic",
      "exactMessage": "ValueError: ['notaword', 'notaword', 'notaword', 'notaword', 'notaword', 'notaword', 'notaword', 'notaword', 'notaword', 'notaword', 'notaword', 'notaword', 'notaword', 'notaword', 'notaword', 'notaword', 'notaword', 'notaword', 'notaword', 'notaword', 'notaword', 'notaword', 'notaword', 'notaword', 'notaword']",
      "answer": "A word in the mnemonic is not in the word list, so decoding fails with a ValueError whose message is the list of words you passed.",
      "cause": "Captured with 25 copies of \"notaword\". Instead of a descriptive message the SDK raised a ValueError whose text is the word list (shown below, cut at 400 characters in the capture).",
      "fix": [
        "Check each word for typos against the BIP-39 English list.",
        "Catch ValueError as well as the SDK's own error classes when decoding user-provided phrases."
      ],
      "source": "captured locally with py-algorand-sdk 2.12.0 on 2026-12-03"
    },
    {
      "slug": "wrongkeylengtherror-key-length-must-be-58",
      "question": "py-algorand-sdk WrongKeyLengthError: \"key length must be 58\"",
      "exactMessage": "WrongKeyLengthError: key length must be 58",
      "answer": "An address string was not 58 characters. It is raised when the transaction is encoded or signed, not when you construct it.",
      "cause": "Captured with PaymentTxn(sender, sp, \"NOTANADDRESS\", 1): construction succeeded, and .sign(sk) raised the error. Building the transaction alone did not validate the receiver.",
      "fix": [
        "Validate addresses up front with encoding.is_valid_address(addr).",
        "An address is 58 uppercase characters; a common cause is an empty or truncated variable."
      ],
      "source": "captured locally with py-algorand-sdk 2.12.0 on 2026-12-03"
    },
    {
      "slug": "non-base32-digit-found-algorand-address",
      "question": "py-algorand-sdk \"Non-base32 digit found\" for an address",
      "exactMessage": "Error: Non-base32 digit found",
      "answer": "The address contains lowercase letters. Algorand addresses are uppercase base32.",
      "cause": "Captured by lowercasing a valid 58-character address and signing. The raised class was a plain Error (from binascii) with the message \"Non-base32 digit found\", raised at sign time.",
      "fix": [
        "Use the address exactly as the SDK returns it, or .strip().upper() user input."
      ],
      "source": "captured locally with py-algorand-sdk 2.12.0 on 2026-12-03"
    },
    {
      "slug": "zeroaddresserror-for-the-zero-address-please-specify",
      "question": "py-algorand-sdk ZeroAddressError: \"For the zero address, please specify AAAA...\"",
      "exactMessage": "ZeroAddressError: For the zero address, please specify AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAY5HFKQ",
      "answer": "A receiver or other address was None. The SDK refuses to guess and asks for the explicit zero address.",
      "cause": "Captured with receiver=None. The message prints the string to use if you really mean the zero address.",
      "fix": [
        "Find the variable that is None (an unset env var or missing dict key).",
        "Only use the zero address on purpose."
      ],
      "source": "captured locally with py-algorand-sdk 2.12.0 on 2026-12-03"
    },
    {
      "slug": "wrongamounttype-amount-must-be-a-non-negative-integer",
      "question": "py-algorand-sdk WrongAmountType: \"amount (amt) must be a non-negative integer\"",
      "exactMessage": "WrongAmountType: amount (amt) must be a non-negative integer",
      "answer": "The amount was negative or not an integer (for example 0.5).",
      "cause": "Captured twice: amount -1 and amount 0.5 gave the identical message, raised at construction.",
      "fix": [
        "Use integers in base units: 1 ALGO = 1,000,000 microAlgos; 0.5 USDC = 500000.",
        "Convert with int(round(x * 10**6)) for 6-decimal assets."
      ],
      "source": "captured locally with py-algorand-sdk 2.12.0 on 2026-12-03"
    },
    {
      "slug": "overflowerror-integer-value-out-of-range",
      "question": "py-algorand-sdk OverflowError: \"Integer value out of range\" for an amount",
      "exactMessage": "OverflowError: Integer value out of range",
      "answer": "An amount of 2**64 or more does not fit in 64 bits. The SDK does not catch it when you construct the transaction; encoding fails.",
      "cause": "Captured with amount 2**64: PaymentTxn was created, and .sign(sk) raised an OverflowError that does not mention the amount.",
      "fix": [
        "Keep amounts below 18446744073709551616; check unit conversions for an extra factor of 10**6 or 10**18."
      ],
      "source": "captured locally with py-algorand-sdk 2.12.0 on 2026-12-03"
    },
    {
      "slug": "incorrect-padding-when-signing-algorand-transaction",
      "question": "py-algorand-sdk \"Incorrect padding\" when signing a transaction",
      "exactMessage": "Error: Incorrect padding",
      "answer": "The private key passed to sign() is not valid base64. In py-algorand-sdk the key is a base64 string.",
      "cause": "Captured with .sign(\"abc\"): the error class was binascii.Error with \"Incorrect padding\".",
      "fix": [
        "Pass the key returned by account.generate_account() or mnemonic.to_private_key().",
        "If you hold raw bytes, base64-encode them first."
      ],
      "source": "captured locally with py-algorand-sdk 2.12.0 on 2026-12-03"
    },
    {
      "slug": "the-seed-must-be-exactly-32-bytes-long",
      "question": "py-algorand-sdk ValueError: \"The seed must be exactly 32 bytes long\"",
      "exactMessage": "ValueError: The seed must be exactly 32 bytes long",
      "answer": "The key decoded to the wrong number of bytes.",
      "cause": "Captured with .sign(b\"1234\"): the four bytes were accepted as base64 text and then the decoded seed was far too short.",
      "fix": [
        "Use the base64 private key string from the SDK; do not pass a public key, an address or a hex string."
      ],
      "source": "captured locally with py-algorand-sdk 2.12.0 on 2026-12-03"
    },
    {
      "slug": "transactiongroupsizeerror-limited-to-16-transactions",
      "question": "py-algorand-sdk TransactionGroupSizeError: \"transaction groups are limited to 16 transactions\"",
      "exactMessage": "TransactionGroupSizeError: transaction groups are limited to 16 transactions",
      "answer": "An atomic group can contain at most 16 transactions.",
      "cause": "Captured with assign_group_id on 17 distinct payments.",
      "fix": [
        "Split into several groups of 16 or fewer. Inner transactions do not count toward the 16."
      ],
      "source": "captured locally with py-algorand-sdk 2.12.0 on 2026-12-03"
    },
    {
      "slug": "abiencodingerror-too-big-to-fit-in-size-8",
      "question": "py-algorand-sdk ABIEncodingError: \"value 256 is not a non-negative int or is too big to fit in size 8\"",
      "exactMessage": "ABIEncodingError: value 256 is not a non-negative int or is too big to fit in size 8",
      "answer": "The value does not fit the ABI integer type. For uint8, the size in the message is 8 (bits).",
      "cause": "Captured by encoding 256 as uint8 (maximum 255).",
      "fix": [
        "Use a wider type such as uint64, or validate before encoding; negative numbers fail the same way."
      ],
      "source": "captured locally with py-algorand-sdk 2.12.0 on 2026-12-03"
    },
    {
      "slug": "abitypeerror-malformed-uint-string",
      "question": "py-algorand-sdk ABITypeError: \"malformed uint string: uint9\"",
      "exactMessage": "ABITypeError: malformed uint string: uint9",
      "answer": "ARC-4 integer types come in multiples of 8 bits; uint9 does not exist.",
      "cause": "Captured with ABIType.from_string(\"uint9\").",
      "fix": [
        "Use uint8, uint16, uint32, uint64 and so on, up to uint512."
      ],
      "source": "captured locally with py-algorand-sdk 2.12.0 on 2026-12-03"
    },
    {
      "slug": "abi-method-string-has-mismatched-parentheses",
      "question": "py-algorand-sdk ABIEncodingError: \"ABI method string has mismatched parentheses\"",
      "exactMessage": "ABIEncodingError: ABI method string has mismatched parentheses: add(uint64,uint64",
      "answer": "The method signature is missing a closing (or opening) parenthesis.",
      "cause": "Captured with Method.from_signature(\"add(uint64,uint64\"); the message repeats the string.",
      "fix": [
        "Write name(argTypes)returnType, for example add(uint64,uint64)uint64."
      ],
      "source": "captured locally with py-algorand-sdk 2.12.0 on 2026-12-03"
    },
    {
      "slug": "no-transactions-to-build-for-atomictransactioncomposer",
      "question": "py-algorand-sdk AtomicTransactionComposerError: \"no transactions to build for AtomicTransactionComposer\"",
      "exactMessage": "AtomicTransactionComposerError: no transactions to build for AtomicTransactionComposer",
      "answer": "You called build_group() before adding any transaction.",
      "cause": "Captured on a fresh composer.",
      "fix": [
        "Add transactions or method calls first, and check conditional paths that skip the add."
      ],
      "source": "captured locally with py-algorand-sdk 2.12.0 on 2026-12-03"
    },
    {
      "slug": "atomictransactioncomposer-must-be-in-building-state",
      "question": "py-algorand-sdk AtomicTransactionComposerError: \"must be in BUILDING state for a transaction to be added\"",
      "exactMessage": "AtomicTransactionComposerError: AtomicTransactionComposer must be in BUILDING state for a transaction to be added",
      "answer": "You added to a composer that had already built its group.",
      "cause": "Captured by calling add_transaction after build_group(). After building, the group id is fixed.",
      "fix": [
        "Add everything first, then build or execute once; create a new composer for more."
      ],
      "source": "captured locally with py-algorand-sdk 2.12.0 on 2026-12-03"
    }
  ]
}