question

vipulchandu123 avatar image
vipulchandu123 asked

regarding Login errors can anyone help me in getting these

/Client/RegisterPlayFabUser: Invalid input parameters Username: Username must be between 3 and 20 characters. UnityEngine.Debug:LogError(Object) PlayFabControl:OnLoginFailure(PlayFabError) (at Assets/Scripts2/PlayFabControl.cs:78)

And one more error i am getting is :

/Client/RegisterPlayFabUser: Both username and email are required unless specified with RequireBothUsernameAndEmail.

2020-08-12.png (247.7 KiB)
2020-08-12-1.png (250.6 KiB)
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
Sarah Zhang avatar image
Sarah Zhang answered

Could you please check that have you got the username successfully? For example, add the condition judgment and Debug.log() function in the code.

If the error says "Username must be between 3 and 20 characters.", it means your "username" field may be empty. If the error says "Both username and email are required unless specified with RequireBothUsernameAndEmail", it means your request body lacked the field -- "Username" or "Email", or both of them.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.