Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v4.6.2 suddenly fails with cannot unmarshal object into Go struct field _UserGetSingleton.type of type string #1836

Closed
dmikalova opened this issue Nov 29, 2023 · 4 comments · Fixed by #1838
Labels
triaged Triaged into internal Jira

Comments

@dmikalova
Copy link

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Terraform Version

terraform -v
Terraform v1.5.5
on darwin_arm64
+ provider registry.terraform.io/hashicorp/aws v5.26.0
+ provider registry.terraform.io/hashicorp/external v2.3.2
+ provider registry.terraform.io/hashicorp/vault v3.23.0
+ provider registry.terraform.io/okta/okta v4.6.2

Affected Resource(s)

  • okta provider configuration

Terraform Configuration Files

provider "okta" {
  api_token = var.okta_api_token
  base_url  = "okta.com"
  org_name  = "my_org"
}

Debug Output

Planning failed. Terraform encountered an error while generating this plan.

╷
│ Error: [ERROR] failed validate configuration: error with v3 SDK client: json: cannot unmarshal object into Go struct field _UserGetSingleton.type of type string
│
│   with provider["registry.terraform.io/okta/okta"],
│   on main.tf line 25, in provider "okta":
│   25: provider "okta" {

Expected Behavior

During plan/apply, the provider should be able to configure itself like it did with v4.6.1 using the same configuration.

Actual Behavior

The provider errors with the above output.

Steps to Reproduce

  1. Use Okta v4.6.2
  2. terraform apply
@SamuZad
Copy link

SamuZad commented Nov 29, 2023

Can verify, downgrading to Okta v4.6.1 makes the error go away and the plan/apply succeeds

@tgoodsell-tempus
Copy link
Contributor

FYI, this appears to be the source of the issue based on the research I've done so far: okta/okta-sdk-golang#419 (comment)

@pro4tlzz
Copy link
Contributor

FYI, this appears to be the source of the issue based on the research I've done so far: okta/okta-sdk-golang#419 (comment)

Thanks for investigating. This error a slight panic this morning.

@duytiennguyen-okta
Copy link
Contributor

It was a panic for me too. Please update to 4.6.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triaged Triaged into internal Jira
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants