Scratchy throat when running


Usually when I go for a run, I don’t have trouble breathing nor coughing. But this time, I went running and my mouth started to spit out saliva and I started coughing more to the point I needed to vomit nothing out. Does this happen any of you when running up a hill? And how could I prevent it from happening again?