If token provided by the symfony security component is null an error is raised

I don't know why but I was in this case and it leads in not being able to use the platform.