Giter Site home page Giter Site logo

KeyError: u'client_email' about gam HOT 5 CLOSED

gam-team avatar gam-team commented on May 13, 2024
KeyError: u'client_email'

from gam.

Comments (5)

rinchen avatar rinchen commented on May 13, 2024

I should note that I can issue other commands (info domain, print users, etc) just fine. I double checked the cloud panel to ensure I have the drive API enabled, and I do.

from gam.

rinchen avatar rinchen commented on May 13, 2024

I tried this with 3.41 and get the same error:

Traceback (most recent call last):
File "gam.py", line 7510, in
showDriveFiles(users)
File "gam.py", line 1840, in showDriveFiles
drive = buildGAPIServiceObject(u'drive', user)
File "gam.py", line 595, in buildGAPIServiceObject
SERVICE_ACCOUNT_EMAIL = json_data[u'client_email']
KeyError: u'client_email'

from gam.

rinchen avatar rinchen commented on May 13, 2024

I was able to fix this problem by regenerating the oauth2service json and p12. So there probably needs to be some error checking in there to report when these aren't working correct vs generating a KeyError.

from gam.

DanielAjoy avatar DanielAjoy commented on May 13, 2024

Same problem.

After getting oauth2service.json by following these instructions

https://github.com/jay0lee/GAM/wiki/CreatingClientSecretsFile#creating-your-own-oauth2servicejson

and successfully running

gam oauth info

and

gam info domain

I tried:

gam user [email protected] show filelist

But I got:

Traceback (most recent call last):
File "gam.py", line 7599, in
showDriveFiles(users)
File "gam.py", line 1873, in showDriveFiles
drive = buildGAPIServiceObject(u'drive', user)
File "gam.py", line 589, in buildGAPIServiceObject
SERVICE_ACCOUNT_EMAIL = json_data[u'client_email']
KeyError: u'client_email'

What could be going on?

from gam.

rinchen avatar rinchen commented on May 13, 2024

@DanielAjoy if it's the same as my problem, your keys are out of sync. If you can regenerate them as per my comment above it should work again....at least, it did for me.

from gam.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.