The cause: Some of the causes of vomiting in dogs include digestive issues, diabetes, and kidney failure. If your dog solely vomits foam or a yellow or clear liquid, it could indicate acute gastritis, pancreatitis, intestinal blockage, or other issues. Why is my dog throwing up clear phlegm?