I am new to symfony and this is my first project and I'm trying to create a login form. I created it using make:auth, but when I try to login I get this error:

I replaced
throw new \Exception('TODO: provide a valid redirect inside '.__FILE__);
with
return new RedirectResponse($this->urlGenerator->generate('home'));
but it shows me the same error.
This is my home route:
/**
* @Route("/", name="home")
* @Method({"GET"})
*/
public function index(){
return $this->render('tenis/index.html.twig');
}