It has happened to me several times, but one of the worst experiences so I remember, is when I cooked some mushrooms that I think were in bad condition, and a few hours later I vomited them, I was like 3-4 hours going to vomit very often, it was a hellish night.

I think the mushrooms were expired, you have to be very careful to check the expiration date of everything you eat.