Bosch dishwasher power on and off

I have a Bosch dishwasher SHY56A05UC / 14. The indicator lights just inside the door go on and off for no apparent reason. Then when I close the door the Wash light flashes on and off. Sometimes it doesnt flash at all. It’s like the power is intermittent. Then that is it. It doesnt do anything else. I have checked the circuit breaker and it wasnt tripped but I reset it anyway. Any help would be much appreciated. Thanks.