Food making me sick

My period isn't due or 4 more days but the last two days I've been really sick at my stomach and I'm craving odd foods but right after I eat them it makes me really sick.. What's going on?