GoogleCloudPlatform / google-cloud-powershell

PowerShell cmdlets for the Google Cloud Platform
http://googlecloudplatform.github.io/google-cloud-powershell/
Apache License 2.0
135 stars 61 forks source link

Powershell session errors then crashes when running any cloud tool command #658

Open connormckeown opened 1 year ago

connormckeown commented 1 year ago

Google Cloud SDK Version

Cloud Tools for Powershell Version

Issue

When running any cloud tool powershell command inside a GCE instance (successful or unsuccessful), I'm running into this error which always follows with the powershell session crashing. (Running equivalent commands with gcloud do not error, it is just Cloud Tools for Powershell)

error

For example, when executing the command below it successfully writes a log to cloud logging which I can query, but will still follow with an error and crash.

New-GcLogEntry -LogName "my-log" -TextPayload "This is a log entry." 

From the error message, it looks like it may be due to an exception when sending data to the Cloud Monitoring API after running a command.