What causes vomiting of overnight food? by Specialist It is common in cases of pyloric obstruction, where vomiting is more severe and there is a large amount of overnight food with a sour odour. Gastroscopy helps to diagnose the exact cause.