You could be sensitive to the sulfur content in onions. The only onions that I will eat raw are green onions, and then in small amounts. If you cook onions until they are clear, most of the sulfur will cook out. I use garlic instead of onions in my own cooking, or take the time to caramelize them.