(some food) didn't agree with (someone)
When food gives you an upset stomach, you can say that the food "didn't agree with" you. It's a way of saying that the food made you feel sick.
You can say that something "didn't agree with" you even if it just makes you feel a little bit sick. It doesn't have to be a very strong negative reaction.
Follow PhraseMix