fix json var unbounded error when http error occur.