Skip to content

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

@connormckeown

Description

@connormckeown

Google Cloud SDK Version

  • Google Cloud SDK 405.0.0
  • bq 2.0.78
  • core 2022.09.30
  • gcloud-crc32c 1.0.0
  • gsutil 5.14

Cloud Tools for Powershell Version

  • ModuleVersion = '1.0.1.10'

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions