Check Engine Light Due to Gas Cap Issue on GMC Canyon

Problem Description and Possible Solution

Illumination of the Check Engine Light can be caused by a loose or worn gas cap.

Problem Data
RepairPal Verified
Average mileage: 88,058 (28,000–160,000)
8 model years affected: 2004, 2005, 2006, 2007, more2008, 2009, 2010, 2016
27 people reported this problem
Viewing 1 - 10 of 10 problem details
My engine light comes on and my engine idles rough, but as soon as the light goes off (randomly) the engine runs fine. The gas cap light comes on my dashboard warning me the it is not secured, I twist of the cap and put it back on, sometimes this will trigger the warning to go off and everthing is fine. That would be wonderful it that was all it was. I am replacing my plugs, air filter and fuel filter to see if these contribute to the light being on.
rough idle and engine would die...new gas cap and problem was fixed.
Check engine light...

..turned off after replacing gas cap..
... came on again.. months later.. not fixed with another gas cap..
Check engine light is on again.. Going to have diagnosis done.. but Terrified of being 'sucked into' the nightmare
of "single woman.. unknown problem" .. gotcha.. with Mechanics..!!!

Mass air flow sensor? OMG.. not the catalytic converter!!
I have the same problem with the gas cap
check engine light comes on after a few miles of driving
I am buying my 4th gas cap. original lasted ~95k, two after market failed during next 60k.
check engine light on
check engine light not going off- bought new cap