Hello I am trying to login to this javascript site i made
https://vaultsgame.com/Perception
username legend
but it is not letting me login
feel free to change the password to test - and you can check the script to see what i am doing - which should be pretty basic login request.
thanks!
Daniel
Answer by duartedd · May 16 at 01:52 PM
Thanks @Gosen Gao- for sure - that is pretty much all that is returned
here is the code:
code: 400 error: "InvalidAPIEndpoint" errorCode: 1131 errorMessage: "The URL for this request is not valid for this title. The correct API endpoint is https://c1d2.playfabapi.com/" status: "BadRequest"
It looks like you only set the titleId for login API. Please set titleId globally so that other APIs can send to correct endpoint.
PlayFab.settings.titleId = "C1D2"
o didnt event realize thought that was part of the request in the login or something - thanks!
Answer by Gosen Gao · May 16 at 07:34 AM
I have checked the code where will login the player. There is nothing wrong with it.
Since I don’t know the password, so when I try to login, it shows an error: "InvalidUsernameOrPassword". If I login with an account that doesn’t exit, it shows another error: "AccountNotFound". This is the correct behavior of the login API. Would you please show me the detailed error message so I can do some research?