algosdk ABI "is not a non-negative int or too big to fit in size uint8"
Short answer: The value does not fit the ABI integer type you encoded it as.
The exact message
256 is not a non-negative int or too big to fit in size uint8
Source: Error, captured locally with algosdk 3.9.0 on 2026-12-03.
Why it happens
The capture encoded 256 as uint8 (maximum 255) and got "256 is not a non-negative int or too big to fit in size uint8". It also fails for negative numbers.
How to fix it
Use a wider type (uint64) in the method signature, or validate the value before encoding.
Check the ABI type of the argument in the contract's method signature.