hashicorp / vscode-terraform

HashiCorp Terraform VSCode extension
https://marketplace.visualstudio.com/items?itemName=HashiCorp.terraform
Mozilla Public License 2.0
926 stars 179 forks source link

VS Code -> HCP Terraform error: Failed to fetch organizations - Response validation failed #1841

Open justinclayton opened 1 month ago

justinclayton commented 1 month ago

Extension Version

v2.32.3

VS Code Version

Version: 1.93.0 Commit: 4849ca9bdf9666755eb463db297b69e5385090e3 Date: 2024-09-04T13:02:38.431Z (6 days ago) Electron: 30.4.0 ElectronBuildId: 10073054 Chromium: 124.0.6367.243 Node.js: 20.15.1 V8: 12.4.254.20-electron.0 OS: Darwin arm64 23.5.0

Operating System

macOS Sonoma 14.5 (23F79)

Terraform Version

Terraform v1.8.4 on darwin_arm64

Steps to Reproduce

  1. Perform successful auth login (supply token)
  2. Refresh organizations

Expected Behavior

Get returned a list of organizations so I can use the extension sidebar

Actual Behavior

The above error in the title.

Terraform Configuration

No response

Project Structure

No response

Gist

No response

Anything Else?

No response

Workarounds

No response

References

No response

Help Wanted

Community Note

jpogran commented 1 month ago

Hi @justinclayton, thanks for reporting this issue. This type of error usually means either the token used did not have permission to enumerate organizations, or the response returned was not in the shape we expected.

Assuming the token you used does have the correct permissions, can you try to login again and open the 'HashiCorp Terraform' output channel and paste the redacted content here? Or email me at james dot pogran at hashicorp dot com? The full error will be logged there and that will help us figure things out.

github-actions[bot] commented 5 days ago

Marking this issue as stale due to inactivity over the last 30 days. This helps our maintainers find and focus on the active issues. If this issue receives no comments in the next 30 days it will automatically be closed. Maintainers can also remove the stale label.

Thank you for understanding.