Forum Discussion
Ken Rappold
Jun 23, 2022Brass Contributor
SDK command error - "The input is not a valid Base-64 string..."
Whenever I perform ANY SDK command (i.e. get-Mguser, invoke-MgGraphrequest), I receive the following error. Example 1: Get-MgUser : The input is not a valid Base-64 string as it contains a non-base...
richardarcher
Jul 04, 2022Copper Contributor
I've started having the same problem today (although it's worked once or twice). I had a look at the issues logged against the GitHub project (https://github.com/microsoftgraph/msgraph-sdk-powershell/issues) and no one else seems to have reported something similar.
JMSupport
Jul 06, 2022Copper Contributor
We ran into this today as well - it was actually due to an invalid session after making an authentication change. I had a spare PS window in the background which was holding an MGGraph session open. I ran a manual disconnect-mggraph and then connect-mggraph and got the authorization pop up.
My mistake was assuming the session updated when I updated Teams, Office, etc.
I knew it was something to do with the auth update we did, but I'm not sure why the base64 error is the result here. Hopefully this helps you guys out!