question

brendan avatar image
brendan asked

White spaces on usernames

inesmoital
started a topic on Fri, 24 April 2015 at 1:18 PM

When registering a new playfab user I cannot use white spaces for the username. It's returning "UsernaemNotAvailable". Is this behavior expected?

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

·
brendan avatar image
brendan answered

2 Comments
Brendan Vanous said on Fri, 24 April 2015 at 6:24 PM

In my testing, if you try putting a space in a Username (which you are correct, is not allowed), I get this response (below). If you're seeing something different, can you share the call you're making?

{

    "code": 400,

    "status": "BadRequest",

    "error": "InvalidParams",

    "errorCode": 1000,

    "errorMessage": "Invalid input parameters",

    "errorDetails": {

        "Username": [

            "Username contains invalid characters."

        ]

    }

}


inesmoital said on Mon, 27 April 2015 at 10:39 AM

Hi Brendan,

Yes that's the message I'm getting. Thanks for the answer.

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.