question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

UnknownApiNameOrVersion: name: youtube version: v3

See original GitHub issue
  • OS macOS: 10.15.4
  • Python version: python 3.7.7
  • pip version: pip 19.0.3
  • google-api-python-client version: 1.8.2

Code example

from googleapiclient.discovery import build
build('youtube', "v3", developerKey="developer_key")

Stack trace

googleapiclient.errors.UnknownApiNameOrVersion: name: youtube version: v3

Hello,

While trying to get data from YouTube Data API get this error UnknownApiNameOrVersion. Looks like youtube v3 api dont have discovery v2 url.

Thanks!

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:8
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

6reactions
busunkim96commented, Apr 23, 2020

Quick update: the change that caused this issue is being rolled back.

6reactions
busunkim96commented, Apr 23, 2020

Hi all - the server theory is correct. The version of the library you are using should not matter. The discovery document is fetched from https://www.googleapis.com/discovery/v1/apis/youtube/v3/rest (which is unfortunately down right now).

If you’re experiencing unreliability you may want to temporarily download the document and use build_from_document.

I’ll file a bug internally to make sure folks know this is down.

Thanks for the report!

Read more comments on GitHub >

github_iconTop Results From Across the Web

googleapiclient.errors.UnknownApiNameOrVersion: name: ...
Returns: An authorized youtube API V3 service object. ... analytics = initialize_analyticsreporting() if __name__ == '__main__': main().
Read more >
googleapiclient.errors.UnknownApiNameOrVersion: name ...
I have been trying for youtube content api and tried with the following code def main(): credentials = ServiceAccountCredentials.from_json_keyfile_name( ...
Read more >
googleapiclient.errors.UnknownApiNameOrVersion Example
UnknownApiNameOrVersion taken from open source projects. ... The serviceName and version are the names from the Discovery service. Args: serviceName: string ...
Read more >
Python on App Engine Code Samples | YouTube Data API
The following Python code samples demonstrate how to use App Engine to make YouTube Data API (v3) calls. You can download these code...
Read more >
discovery.py
from googleapiclient.errors import UnknownApiNameOrVersion ... raise UnknownApiNameOrVersion("name: %s version: %s" % (serviceName,. version)).
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found