Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chromebook KeyError: 'wanIpAddress' #237

Closed
carbm1 opened this issue Feb 3, 2022 · 3 comments
Closed

Chromebook KeyError: 'wanIpAddress' #237

carbm1 opened this issue Feb 3, 2022 · 3 comments

Comments

@carbm1
Copy link

carbm1 commented Feb 3, 2022

I am seeing this error while trying to pull Chromebook data.

& gam print cros fields deviceid,serialnumber,model,assetid,autoupdateexpiration,status,lastsync,lastenrollmenttime,orgunitpath,osversion,location,lastKnownNetwork,macAddress recentusers listlimit 1 orderby lastsync
Getting all CrOS Devices, may take some time on a large Google Workspace Account...
Got 4000 CrOS Devices...Traceback (most recent call last):
File "init.py", line 59090, in ProcessGAMCommand
File "init.py", line 19905, in doPrintCrOSDevices
File "init.py", line 19725, in _printCrOS
KeyError: 'wanIpAddress'

I attempted running:
& gam config debug_level 1 print cros fields deviceid,serialnumber,lastKnownNetwork,macAddress orderby lastsync

Unfortunately this didn't yield any useful data as far as I could tell and it failed at the same place.

@carbm1
Copy link
Author

carbm1 commented Feb 3, 2022

I realized I wasn't running the latest version. Upgraded to 6.15.06. Same error. Different line numbers.

Got 4000 CrOS Devices...Traceback (most recent call last):
File "init.py", line 59962, in ProcessGAMCommand
File "init.py", line 20091, in doPrintCrOSDevices
File "init.py", line 19911, in _printCrOS
KeyError: 'wanIpAddress'

@taers232c
Copy link
Owner

taers232c commented Feb 3, 2022 via email

@carbm1
Copy link
Author

carbm1 commented Feb 3, 2022

6.15.07 fixed the issue! Thank you!

@carbm1 carbm1 closed this as completed Feb 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants