Skip to content
This repository has been archived by the owner on Jul 27, 2022. It is now read-only.

403 Forbidden "message": "Invalid transition" #71

Open
yokei15 opened this issue Nov 13, 2019 · 0 comments
Open

403 Forbidden "message": "Invalid transition" #71

yokei15 opened this issue Nov 13, 2019 · 0 comments

Comments

@yokei15
Copy link

yokei15 commented Nov 13, 2019

Facing issues as 403 Forbidden "message": "Invalid transition" below is my log & code implemented but i do know what actually i have to pass the params in parts.

Is that correct way to pass the params??

Error Log:

com.google.api.client.googleapis.json.GoogleJsonResponseException: 403 Forbidden
    {
      "code": 403,
      "errors": [
        {
          "domain": "youtube.liveBroadcast",
          "message": "Invalid transition",
          "reason": "invalidTransition",
          "extendedHelp": "https://developers.google.com/youtube/v3/live/docs/liveBroadcasts/transition#params"
        }
      ],
      "message": "Invalid transition"
    }

Code:

public static void startEvent(YouTube youtube, String broadcastId)
            throws IOException {

        try {
            Thread.sleep(20000);
        } catch (InterruptedException e) {
            Log.e(MainActivity.APP_NAME, "", e);
        }

        Transition transitionRequest = youtube.liveBroadcasts().transition(
                "live", broadcastId, "id,snippet,contentDetails,status");
        transitionRequest.execute();
    }

Thanks in advance.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant