question

epicpuppyrawrr avatar image
epicpuppyrawrr asked

PlayFabSDK: Error code 2

Trying to call PlayFabSDK.LoginWithCustomID but getting a response with error code 2

Full Response below:

{ code: 503,
  status: 'Service Unavailable',
  error: 'Connection error',
  errorCode: 2,
  errorMessage: '',
  CallBackTimeMS: 58,
  Request: 
   { TitleId: [the correct id],
     CustomId: [the correct guid],
     CreateAccount: false },
  CustomData: undefined }

Using JavaScript, code below:

G.authRequest = {};
G.authRequest.TitleId = PlayFab.settings.titleId;
G.authRequest.CustomId = G.GUID;
if (G.newUser) G.authRequest.CreateAccount = true;
else G.authRequest.CreateAccount = false;
PlayFabClientSDK.LoginWithCustomID(G.authRequest, (response, error) => {
    if (error) {
        console.error(error)
    }
    else {
        var result = response.data;
        G.player.id = result.PlayFabId;
    }
}

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

·
epicpuppyrawrr avatar image
epicpuppyrawrr answered

figured it out, there was something that was blocking requests to playfabapi.com

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.