A common mistake:frying the onion too short.
You can fry an onion by gently heating it in some oil or butter until the onion turns light brown. This releases the flavors well.
Sometimes we get a little impatient and think the onion is good. A shame, because if you don't fruit the onion long enough, the taste will not be optimal and the onion will not come into its own.