I have a Goodman unit and it's acting weird too. It would light and then go off. So the manual says that the blinking light code is low/no gas supply. I check the hot water tank and it lights normally. So I go up to Johnstone supply and get a new flame sensor for about $4.98. Plug it in and it's fixed. That was a couple of weeks ago and I've just caught it doing the same thing only not near as bad. It will run a good while and then cut off prematurely, go through it's routine, and then relight and go until thermostat cuts it off normally. Mine will do 3 attempts before failing out for an hour and retrying. So far the retries are working. Think I need a new gas valve.