googleapiclient.errors.UnknownApiNameOrVersion: name: script version: v1

Offen
#194 2 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
3/5
Geschätzter Aufwand
Ein halber Tag
Anfängerfreundlichkeit
22/100
Issue-Typ
Bug
Klarheit
Größtenteils klar
Aktivitätsstatus
Veraltet
Tech-Stack
python
Bereich
api

Rechercherichtung

The failure is at the build('script', 'v1', credentials=creds) call in quickstart.py, which raises from googleapiclient/discovery.py in _retrieve_discovery_doc. First check whether the Apps Script API discovery document for script v1 is still served and whether the quickstart still matches the current API. Done means the quickstart runs, or the issue is confirmed obsolete and closed. The thread has been silent for about five years, so confirm the maintainers still review this repository before investing time.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

Expected Behavior

The quickstart.py example (https://developers.google.com/apps-script/api/quickstart/python) should run successfully.

Actual Behavior

Exits with the following error:

Traceback (most recent call last):
  File "quickstart.py", line 83, in <module>
    main()
  File "quickstart.py", line 53, in main
    service = build('script', 'v1', credentials=creds)
  File "/home/rob/.venv/lib/python3.8/site-packages/googleapiclient/_helpers.py", line 134, in positional_wrapper
    return wrapped(*args, **kwargs)
  File "/home/rob/.venv/lib/python3.8/site-packages/googleapiclient/discovery.py", line 273, in build
    content = _retrieve_discovery_doc(
  File "/home/rob/.venv/lib/python3.8/site-packages/googleapiclient/discovery.py", line 387, in _retrieve_discovery_doc
    raise UnknownApiNameOrVersion("name: %s  version: %s" % (serviceName, version))
googleapiclient.errors.UnknownApiNameOrVersion: name: script  version: v1

Steps to Reproduce the Problem

  1. Follow the steps at https://developers.google.com/apps-script/api/quickstart/python

Specifications

  • Python version (python --version): Python 3.8.5
  • OS (Mac/Linux/Windows): Linux
Vorherrschende Sprache
Python
Sterne
1.4k
Forks
917
Ø Merge
3 Min.
Gemergte PRs (30 T.)
1

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus googleworkspace/python-samples

Alle Issues in googleworkspace/python-samples

Ähnliche Issues

Weitere Issues zu Python

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.