Invalid player state when creating the session

I’ve got an error while trying to create session. Log returns this “LogScriptCore:Warning: Script Msg: CreateSession - Invalid player state”

Player State Class used in project is “PlayerState”.
And I use this in DefaultEngine config:
[OnlineSubsystem]
DefaultPlatformService=Null

Session must be LAN

How can I fix this?
Thanks in advance and sorry for my english.

check : player controller should be connected in the create session and unchecked dedicated server if you run in PIE

Just a tip for everyone that come here: You need to wait a little for the Player State to get created, what I do is see if the player state is valid, if is not make a loop with a delay of 0.2 and see if is valid again.