Title: missingRequiredParameter error
Last modified: April 2, 2020

---

# missingRequiredParameter error

 *  [Krzsz](https://wordpress.org/support/users/solv/)
 * (@solv)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/missingrequiredparameter-error/)
 * Hello,
 * I just started using your plugin and can’t get it to work. Here is error code:
 *     ```
       <!-- YouTube Live debugging: 
       EmbedYoutubeLiveStreaming::__set_state(array(
          'channelId' => '',
          'API_Key' => '',
          'jsonResponse' => '{
        "error": {
         "errors": [
          {
           "domain": "youtube.parameter",
           "reason": "missingRequiredParameter",
           "message": "No filter selected. Expected one of: id, idParam, chart, myRated",
           "locationType": "parameter",
           "location": ""
          }
         ],
         "code": 400,
         "message": "No filter selected. Expected one of: id, idParam, chart, myRated"
        }
       }
       ',
          'objectResponse' => 
         (object) array(
            'error' => 
           (object) array(
              'errors' => 
             array (
               0 => 
               (object) array(
                  'domain' => 'youtube.parameter',
                  'reason' => 'missingRequiredParameter',
                  'message' => 'No filter selected. Expected one of: id, idParam, chart, myRated',
                  'locationType' => 'parameter',
                  'location' => '',
               ),
             ),
              'code' => 400,
              'message' => 'No filter selected. Expected one of: id, idParam, chart, myRated',
           ),
         ),
          'arrayResponse' => 
         array (
           'error' => 
           array (
             'errors' => 
             array (
               0 => 
               array (
                 'domain' => 'youtube.parameter',
                 'reason' => 'missingRequiredParameter',
                 'message' => 'No filter selected. Expected one of: id, idParam, chart, myRated',
                 'locationType' => 'parameter',
                 'location' => '',
               ),
             ),
             'code' => 400,
             'message' => 'No filter selected. Expected one of: id, idParam, chart, myRated',
           ),
         ),
          'errorMessage' => 'No filter selected. Expected one of: id, idParam, chart, myRated',
          'errorArray' => 
         array (
           0 => 
           array (
             'domain' => 'youtube.parameter',
             'reason' => 'missingRequiredParameter',
             'message' => 'No filter selected. Expected one of: id, idParam, chart, myRated',
             'locationType' => 'parameter',
             'location' => '',
           ),
         ),
          'isLive' => NULL,
          'queryData' => 
         array (
           'key' => 'AIzaSyAdMA6-xTBwJRXXL1UD6OZ37KCvyZ3Hv1M',
           'part' => 'id,snippet',
           'id' => NULL,
         ),
          'getAddress' => 'https://www.googleapis.com/youtube/v3/',
          'getQuery' => 'key=AIzaSyAdMA6-xTBwJRXXL1UD6OZ37KCvyZ3Hv1M&part=id%2Csnippet',
          'queryString' => 'https://www.googleapis.com/youtube/v3/videos?key=AIzaSyAdMA6-xTBwJRXXL1UD6OZ37KCvyZ3Hv1M&part=id%2Csnippet',
          'part' => 'id,snippet',
          'eventType' => 'upcoming',
          'type' => 'video',
          'subdomain' => 'www',
          'default_embed_width' => '560',
          'default_embed_height' => '315',
          'default_ratio' => 1.7777777777777777,
          'embed_code' => '                <div id="wpYouTubeLive" width="720" height="480"></div>
                       <script>
                           var wpYTPlayer;
                           function onYouTubeIframeAPIReady() {
                               wpYTPlayer = new YT.Player(\'wpYouTubeLive\', {
                                   videoId: \'\',
                                   playerVars: {
                                       \'autoplay\': 0,
                                       \'rel\': 0                            },
                                   events: {
                                       \'onReady\': wpYTonPlayerReady,
                                       \'onStateChange\': wpYTonPlayerStateChange
                                   }
                               });
                           }
                       </script>
                   ',
          'embed_autoplay' => NULL,
          'embed_width' => '720',
          'embed_height' => '480',
          'show_related' => NULL,
          'live_video_id' => NULL,
          'live_video_title' => NULL,
          'live_video_description' => NULL,
          'live_video_publishedAt' => NULL,
          'live_video_thumb_default' => NULL,
          'live_video_thumb_medium' => NULL,
          'live_video_thumb_high' => NULL,
          'resource_type' => 'live',
          'uploads_id' => NULL,
          'channel_title' => NULL,
          'completed_video_id' => '',
          'resource' => 'videos',
       ))
       ```
   
    -  This topic was modified 6 years, 2 months ago by [Krzsz](https://wordpress.org/support/users/solv/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fmissingrequiredparameter-error%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Plugin Author [macbookandrew](https://wordpress.org/support/users/macbookandrew/)
 * (@macbookandrew)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/missingrequiredparameter-error/#post-12628583)
 * I see your API key in the error above, but I don’t see your channel ID. Please
   double-check that you’ve added that in the plugin settings.

Viewing 1 replies (of 1 total)

The topic ‘missingRequiredParameter error’ is closed to new replies.

 * ![](https://ps.w.org/wp-youtube-live/assets/icon-256x256.png?rev=2711798)
 * [WP YouTube Live](https://wordpress.org/plugins/wp-youtube-live/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-youtube-live/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-youtube-live/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-youtube-live/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-youtube-live/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-youtube-live/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [macbookandrew](https://wordpress.org/support/users/macbookandrew/)
 * Last activity: [6 years, 2 months ago](https://wordpress.org/support/topic/missingrequiredparameter-error/#post-12628583)
 * Status: not resolved