What make, and model is it? If Atwood, they have a regular problem where the electronic circuit board gets mild corrosion on the board connections where the multi-conductor plug is plugged in. I pull the plug, and clean the tabs on the board with a pencil eraser. That usually fixes it.
What others suggested also, particularly mud in the vent pipe.
One other suggestion is the green ground wire may be corroded where the screw is. Loosen it and re-tighten it. That is a common problem after setting also.