Getting Server Rejected error when upload using Google Picker, Oauth2

Give us a little more code, or check the call to gapi.auth.authorize()

  1. Check that you are using the correct scope to obtain the OAuth token.
    • Scope should be https://www.googleapis.com/auth/drive
  2. Double-Check the scope declaration:
    • https://developers.google.com/accounts/docs/OAuth2Login#sendauthrequest
  3. Check the call to gapi.auth.authorize()

    window.gapi.auth.authorize(
    {
         'client_id': clientId,
         'scope': scope,
         'immediate': false
    },
    handleAuthResult);
    

    from: https://developers.google.com/picker/docs/#hiworld

Without an actual code sample, it is very difficult to say exactly what is going on. Most likely it is the auth token colection. However, it may also be something as simple as not defining a google User (clientID) which in turn impacts the gapi.auth.authorize() call.

Leave a Comment