Small Engine Troubleshooting Problems? Ask a Mechanic Now.
This is most often caused when the genset is no longer producing any electricity.
You asked if I had any ideas what causes your issue, but provided absolutely no details - like a model number. Onan has made thousands of different models over the years. We can't just magically know which model you have.
But on all Onan models, that is the most common cause.