Several factors may trigger an attack: eating too fast or too much, a particular food, your period, your overall diet, stress, depression or medication—it can vary.