SCRT-HQ / PSGSuite

Powershell module for Google / G Suite API calls wrapped in handy functions. Authentication is established using a service account via P12 key to negate the consent popup and allow for greater handsoff automation capabilities
https://psgsuite.io/
Apache License 2.0
234 stars 66 forks source link

get-gsdrivefilelist returns error #259

Closed jon-parodi closed 4 years ago

jon-parodi commented 4 years ago

when running get-gsdrivefileinfo and other gsdrive cmdlets, error is received

You cannot call a method on a null-valued expression.

This occurs even when providing my own account as the target, or no account at all (which should default to my user)

Error occurs in version 2.34.0 and I have not tried older

jon-parodi commented 4 years ago

Error seems to resolved itself after updating to v2.35.1 and restarting my session

scrthq commented 4 years ago

Hey @jparodi - thanks for using PSGSuite and opening up an issue! Just a heads up, this usually happens if the underlying assemblies aren't loaded correctly, e.g. if the module was autoimported by calling one of the functions vs explicitly imported before via Import-Module PSGSuite

In case anyone stumbles across this issue, I wanted to provide the same background info 🙂