Problem with I2C ds1307 library

Application continues crashing with errors:
raised at line 57 of maxim.ds1307.ds1307.get_time
raised at line 141 of i2c.write_read

What is the possible error?

I think this is a hardware error, Could you check the connections?
Maybe check the continuity of each jumper/wire?, also the power of the RTC.
Also could you tell me which device are you using?

I’m using an elegoo ds1307 on an esp32. Sometimes the error Is a hardware error, other times It Is a timeout error. Both errors are generated from the same code.