Just before leaving for the Cannes Film Festival Aishwarya Rai Bachchan suffered an eye infection and thus she had to take urgent medication.