in retry middleware body is not a Faraday::CompositeReadIO, body is hash. As example
{file: UpoadIO..., param1: 'value1', files:[UpoadIO, UpoadIO, UpoadIO, ...]}