The short answer to do solar panels work at night is no-solar panels do not generate electricity at night because there is no sunlight to activate the photovoltaic cells.
[PDF Version]
The real cause is often a limit in the path from battery to inverter. It can be a strict low-voltage cutoff, a surge that exceeds the BMS limit, or a simple voltage drop in the cables. The inverter can click off when a compressor.
[PDF Version]