Sprinkle some extra virgin olive oil in a roasting pan and place 14 of the rosemary sprigs in the bottom of the pan.
Place the chicken on top of the rosemary sprigs and massage it with the olive oil, then season generously inside and out with salt and pepper.
Cut the onion in half and put it in the cavity of the chicken with 4 rosemary sprigs.
Place the 2 remaining rosemary sprigs in-between each wing.
Place the potatoes, chili peppers, and carrots around the chicken and season with salt and pepper to taste.
Add the wine to the pan.
Bake uncovered 1 hour and 30 minutes, to a minimum internal temperature of 165 degrees. Remove from the oven and baste with the juices and drippings. Cover with aluminum foil and allow to rest about 10 minutes before serving.