Microsoft Azure PlayFab logo
    • Multiplayer
    • LiveOps
    • Data & Analytics
    • Add-ons
    • For Any Role

      • Engineer
      • Designer
      • Executive
      • Marketer
    • For Any Stage

      • Build
      • Improve
      • Grow
    • For Any Size

      • Solo
      • Indie
      • AAA
  • Runs on PlayFab
  • Pricing
    • Blog
    • Forums
    • Contact us
  • Sign up
  • Sign in
  • Ask a question
  • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Topics
    • Questions
    • Articles
    • Ideas
    • Users
    • Badges
  • Home /
  • Bugs /
avatar image
Question by Brendan · Oct 07, 2015 at 07:18 AM ·

Can't create users

kotorna
started a topic on Wed, 18 February 2015 at 2:39 PM

Hi guys,

Im trying to set up a demo project to understand how the platform works, and I cant create new users.
It seems that im hitting the main DB as "test","admin", etc are all existing users.

Checking the configs Im sending correctly the info to the servers but something seems to be failing...

Here is what Unity is showing me as error:

"Got an error: UsernameNotAvailable

UnityEngine.Debug:Log(Object)

PlayFab.Examples.PlayFabRegisterUser:OnPlayFabError(PlayFabError) (at Assets/PlayFabClientSDK/Playfab/Examples/Scripts/PlayFabRegisterUser.cs:133)

PlayFab.<RegisterPlayFabUser>c__AnonStorey11:<>m__8(String, String) (at Assets/PlayFabClientSDK/Playfab/PlayFabSDK/Public/PlayFabClientAPI.cs:356)

PlayFab.Internal.<MakeRequest>c__Iterator5:MoveNext() (at Assets/PlayFabClientSDK/Playfab/PlayFabSDK/Internal/PlayFabHTTP.cs:53)"

Need Help :) Thanks!

Comment

People who like this

0 Show 0
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
Best Answer

Answer by Brendan · Oct 07, 2015 at 07:18 AM

7 Comments
deadstarcgs said on Wed, 18 February 2015 at 3:08 PM

That's the exact problem. Using the base registration you are registering users on the Playfab global database, so like the error says the username isn't available (given that test and admin are very common usernames to begin with).

The only way around this is to either keep trying until you find a username that isn't taken or contact Playfab and ask them for a publisher ID which will allow you to register users under your publisher database rather than the global database.


kotorna said on Wed, 18 February 2015 at 3:21 PM

The only way of getting a publisher ID is by asking them?

That is what I need a publisher ID to have my own user base as I'm planning on using the platform for a product that will be consumer market.


deadstarcgs said on Wed, 18 February 2015 at 3:24 PM

Yes, they don't have a way currently of finding your Publisher ID through the Game Manager as it's only a very new feature. If you contact them at devrel@playfab.com, they'll be able to arrange it for you.


kotorna said on Wed, 18 February 2015 at 3:26 PM

Thanks a lot!,

Once the sent me the ID I need to add the PublisherId: manually as it is not listed anywhere right?


deadstarcgs said on Wed, 18 February 2015 at 3:31 PM

That's correct, the request function will now have a request.PublisherId field that will let you add your Publisher ID and the Playfab servers will handle the rest from there.


voxelus said on Thu, 19 February 2015 at 4:24 AM

Hi deadstarcgs!, thanks for you responses.
I have the publisherId now, and I am trying to replace in every "publisherId" with the code you sent us in the class playFabClientModel (this class is the only one that have the set of the publisherId property, at less, is the only class where I can found it). Can you please tell us where exactly do we have to add this code manually?. I am trying to replace them in all the matches "publisherId", but it does not work,it read from the global database anyway.

Thanks in advance.


Brendan Vanous said on Thu, 19 February 2015 at 11:42 AM

For the sake of those encountering this thread, this was also asked and answered here: https://community.playfab.com/hc/communities/public/questions/206730517-can-t-create-users-with-the-publisherId

Comment

People who like this

0 Show 0 · Share
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Navigation

Spaces
  • General Discussion
  • API and SDK Questions
  • Feature Requests
  • PlayStream
  • Bugs
  • Add-on Marketplace
  • LiveOps
  • Follow this Question

    Answers Answers and Comments

    No one has followed this question yet.

    PlayFab

    • Multiplayer
    • LiveOps
    • Data & Analytics
    • Runs on PlayFab
    • Pricing

    Solutions

    • For Any Role

      • Engineer
      • Designer
      • Executive
      • Marketer
    • For Any Stage

      • Build
      • Improve
      • Grow
    • For Any Size

      • Solo
      • Indie
      • AAA

    Engineers

    • Documentation
    • Quickstarts
    • API Reference
    • SDKs
    • Usage Limits

    Resources

    • Forums
    • Contact us
    • Blog
    • Service Health
    • Terms of Service
    • Attribution

    Follow us

    • Facebook
    • Twitter
    • LinkedIn
    • YouTube
    • Sitemap
    • Contact Microsoft
    • Privacy & cookies
    • Terms of use
    • Trademarks
    • Safety & eco
    • About our ads
    • © Microsoft 2020
    • Anonymous
    • Sign in
    • Create
    • Ask a question
    • Create an article
    • Post an idea
    • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Explore
    • Topics
    • Questions
    • Articles
    • Ideas
    • Users
    • Badges