Avoid Net::HTTP Error