mps-youtube / yewtube

yewtube, forked from mps-youtube , is a Terminal based YouTube player and downloader. No Youtube API key required.
GNU General Public License v3.0
8.07k stars 645 forks source link

API key error #1110

Closed evandrix closed 1 year ago

evandrix commented 4 years ago
> set
api_key : AIzaSyCIM4EzNqi1in22f4Z3Ru3iYvLaY8tc3bo
Error fetching data. Possible network issue.
Youtube Error 403: The request cannot be completed because you have exceeded your <a href="/youtube/v3/getting-started#quota">quota</a>.
llorllale commented 4 years ago

Tried setting a different api_key but still got this error: Invalid key or quota exceeded, '**********************************

This comment is inaccurate as per https://developers.google.com/youtube/v3/docs/i18nLanguages/list:

A call to this method has a quota cost of 1 unit.

Regardless, I'm getting a 404 calling that API...

llorllale commented 4 years ago

Fixed error while setting a different api_key - turns out I was building the manual query wrong. I also had to enable YouTube Data API v3 for use with my key.

sijanec commented 3 years ago

I am getting the same error... Weird...

> set api_key

  Key                 Value                                                  
  order             : relevance
  user_order        : 
  max_res           : 2160p
  player            : mpv
  playerargs        : 
  encoder           : 0 [None]
  notifier          : 
  checkupdate       : True
  show_mplayer_keys : True
  fullscreen        : False
  show_status       : True
  columns           : 
  ddir              : /home/a/Downloads/mps
  overwrite         : True
  show_video        : False
  search_music      : True
  window_pos        : 
  window_size       : 
  download_command  : 
  lastfm_username   : 
  lastfm_password   : 
  lastfm_api_key    : 
  lastfm_api_secret : 
  audio_format      : auto
  video_format      : auto
  api_key           : AIza**************
  autoplay          : False
  set_title         : True
  mpris             : True

Invalid key or quota exceeded, '' 

(yes, the key is empty in the brackets '')

Edit: Weird, it started working a couple of minutes later. Maybe Google was yet to enable to key.

Edit 2: Wow, now I am getting a different message;

Problem playing last item: Tiësto & Oliver Heldens - Wombass [OUT NOW] ERROR: oCwjnyrfudY: Youtube says: Invalid parameters.[1/25>
> ERROR: HzCazh3raN0: YouTube said: Invalid parameters.
llorllale commented 3 years ago

This bug seems to be present on 0.2.8. I just had to re-install from master to make it work.

nikisix commented 3 years ago

Had to:

  1. set api_key <my_key>
  2. wait 5 minutes
  3. set api_key <my_key> again