If there is an e7 error code in the electric teapot, it is generally a problem with the temperature sensor. Try to check whether the sensor is working properly with a multimeter. If the sensor is damaged, consider replacing it with a new sensor.
Before trying to solve the problem, please be sure to consult the user manual of the electric teapot for specific troubleshooting methods.