This build is broken due to the mismatch in expected and actual error condition for get_chunk. The C code still expects it to return None.