googleworkspace / browser-samples

Web samples for Google Workspace APIs
Apache License 2.0
332 stars 557 forks source link

discovery param when set generates a network 400 error #107

Closed bluejack closed 2 years ago

bluejack commented 2 years ago

Summary

Using the quickstart example out of the box with my (working) app key and client id results in a 400 error:

GET https://content.googleapis.com/discovery/v1/apis/drive/v3/rest?pp=0&fields=kind%2Cname%2Cversion%2CrootUrl%2CservicePath%2Cresources%2Cparameters%2Cmethods%2CbatchPath%2Cid&key=[My app key redacted] 400

Expected Behavior

The sample app would load and function.

Actual Behavior

The console logs the above error.

Steps to Reproduce the Problem

  1. Cut and paste quickstart code into an app with a working key and client id
  2. Load the page
  3. Watch the console.

*** Note further; removing the param loads the page but does not appear to have loaded the actual drive api.

bluejack commented 2 years ago

DIscovered the error on my own side.