2. Food Allergies Some dogs develop allergies to specific ingredients in their diet, which can cause gastrointestinal upset and vomiting.