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

cannot unmarshal string into GO struct field MessageResource.details of the type map [string]interface{} #44

Closed
ghost opened this issue Apr 2, 2019 · 7 comments

Comments

@ghost
Copy link

ghost commented Apr 2, 2019

Getting the following error when setting up a vm on nutanix:
cannot unmarshal string into GO struct field MessageResource.details of the type map [string]interface{}

Please let me know if anyone has seen this error and what may be the cause

@marinsalinas
Copy link
Contributor

marinsalinas commented Apr 11, 2019

@mkapooretg Can you share your configuration file and Prism Central version as well?

@titilambert
Copy link

titilambert commented Apr 17, 2019

On my side:

Nutanix: Version 5.10.3
NCC Version: ncc-3.7.0.2

I just have

provider "nutanix" {
  username = "USERNAME"
  password = "PASSWORD"
  endpoint = "HOSTADDRESS"
  insecure = true
  port     = 9440
}

data "nutanix_clusters" "clusters" {
}

I tried:

  • terraform v0.11.13 + terraform-nutanix 1.0
  • terraform v0.11.11 + terraform-nutanix 1.0
  • terraform v0.11.8 + terraform-nutanix 1.0
  • terraform v0.11.13 + terraform-nutanix HEAD
  • terraform v0.11.11 + terraform-nutanix HEAD
  • terraform v0.11.8 + terraform-nutanix HEAD

Maybe it's because I don't have access to clusters ressources ?

@marinsalinas
Copy link
Contributor

@mkapooretg : can I have the crash.log?

@rdobrynski
Copy link

I too seem to be experiencing this issue on terraform 0.11.14 and PC version 5.10.4
terraform plan works, but apply breaks.

@ghost
Copy link
Author

ghost commented Jun 6, 2019 via email

@rdobrynski
Copy link

ahh.. silly domain suffix in username. Confirmed this is working with terraform 0.11.14 and PC version 5.10.4, thanks mkapoor

@scott-grimes
Copy link
Contributor

Got hit by this: Nutanix returns a non-json object with response code 401 which cannot be unmarshaled by the CheckResponse method at https://github.com/terraform-providers/terraform-provider-nutanix/blob/8a3e566ff0a8520de9d7694e7c4315552c323cab/client/client.go#L263

Reworked this with PR that throws an invalid credential error instead, which is more helpful I think #148

yannickstruyf3 pushed a commit to yannickstruyf3/terraform-provider-nutanix that referenced this issue Nov 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants