Note that there are some explanatory texts on larger screens.

plurals
  1. POGetting invalid_client with OAuth2 Drive API
    text
    copied!<p>I've created a project in Google Cloud Console, and I'm pretty sure my AppEngine project is associated with it (clicking on the AppEngine link in the project shows an overview of my AppEngine project). </p> <p>I've uploaded my project to run on appspot.com.</p> <p>I've properly copied and pasted the console project's OAuth2 client secret and id to be used by the Python library. </p> <p>I've properly setup the consent screen. </p> <p>I've added the callback urls.</p> <p>I've made sure that the appropriate API's are turned "ON" and green (Google Drive).</p> <p>But I'm still getting <code>Error: invalid_client</code> when trying to authenticate.</p> <p>What did I miss? </p> <p><strong>EDIT</strong>: Here's the url where it goes wrong</p> <pre><code>https://accounts.google.com/o/oauth2/auth?state=https%3A%2F%2Fmy-app-id.appspot.com%2Fspreadsheet%2Fview%2F0Ao7HHtqOGzZ7dDNneTg0b1R0bnVJNzRvWk9DVVhIVXc%3A9wi8bS1R7fejjVuDd9IdPjoxMzg0NjgyNDU5&amp;redirect_uri=https%3A%2F%2Fmy-app-id.appspot.com%2Foauth2callback&amp;response_type=code&amp;client_id=abcxyz123.apps.googleusercontent.com&amp;scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fdrive.readonly&amp;access_type=offline </code></pre> <p>and the following text (with an image of a broken robot):</p> <pre><code>Request Details cookie_policy_enforce=false response_type=code scope=https://www.googleapis.com/auth/drive.readonly redirect_uri=https://my-app-id.appspot.com/oauth2callback access_type=offline state=https://my-app-id.appspot.com/spreadsheet/view/0Ao7HHtqOGzZ7dDNneTg0b1R0bnVJNzRvWk9DVVhIVXc:9wi8bS1R7fejjVuDd9IdPjoxMzg0NjgyNDU5 client_id=abcxyz123.apps.googleusercontent.com </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload