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 /
  • API and SDK Questions /
avatar image
Question by Jonathan Wetherall · Dec 01, 2021 at 08:50 PM ·

400 Error on Unity and Switch,400 Bad Request error on Switch and Unity

I am getting /Client/LoginWithNintendoServiceAccount : HTTP/1.1 400 Bad Request, my app is

Title ID
5DA52
As far as i can see i have correctly followed all the information i can find, though a good example would really save time instead of having to scrape information from the Nintendo forums. Jon,

I am getting /Client/LoginWithNintendoServiceAccount : HTTP/1.1 400 Bad Request, my app is

Title ID
5DA52
As far as i can see i have correctly followed all the information i can find, though a good example would really save time instead of having to scrape information from the Nintendo forums.Jon
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 Sarah Zhang · Dec 02, 2021 at 08:24 AM

Firstly, the error “HTTP/1.1 400 Bad Request” is a common API error. It cannot be used to locate a specific issue. You can print its error messages for more detailed information. The request and its callback functions could be something like this.

using PlayFab;
using PlayFab.ClientModels;
using UnityEngine;


public class LoginWithNSAccount : MonoBehaviour
{
    public void Start()
    {
        var request = new LoginWithNintendoServiceAccountRequest { IdentityToken = "[YourIdentityToken]", TitleId = "[YourTitleId]" };
        PlayFabClientAPI.LoginWithNintendoServiceAccount(request, OnLoginSuccess, OnLoginFailure);
    }


    private void OnLoginSuccess(LoginResult result)
    {
        Debug.Log("Success.");
    }


    private void OnLoginFailure(PlayFabError error)
    {
        Debug.Log(error.GenerateErrorReport());
    }
}

Besides, we are not allowed to discuss the development details of the closed game platforms publicly, such as Nintendo Switch, PlayStation, etc. If the issue is on the content of IdentityToken, you still need to submit the questions on the Nintendo private developer forum for help.

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

    8 People are following this question.

    avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

    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