LoginSignup
0
0

More than 1 year has passed since last update.

Youtube V3 Data APIで401に詰まった話

Posted at

概要

Youtube V3 Data APIを使用して再生リストを作成したようとした際に401のエラーが出てしまい、解決に苦労してしまいました。

結論

YouTubeチャンネルを作成していないのが問題でした。

問題解決にStackoverFlowの回答を参考にしました

The reason "youtubeSignupRequired" usually means the YouTube account has not been set up properly or you have not created your YouTube channel yet. This is a requirement before you can upload videos. It would be great if Google could improve their error message for this case and make it a bit more verbose.

翻訳

理由「youtubeSignupRequired」は通常、YouTubeアカウントが適切に設定されていないか、まだYouTubeチャンネルを作成していないことを意味します。これは、動画をアップロードする前に必要な手順です。Googleがこの場合のエラーメッセージを改善し、もう少し詳細な情報を提供してくれると良いでしょう。

エラーの詳細

response
{
    "error": {
        "code": 401,
        "message": "Unauthorized",
        "errors": [
            {
                "message": "Unauthorized",
                "domain": "youtube.header",
                "reason": "youtubeSignupRequired",
                "location": "Authorization",
                "locationType": "header"
            }
        ]
    }
}

参考

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0