nutanix / nutanix.ansible

Official Nutanix Ansible collections
GNU General Public License v3.0
67 stars 38 forks source link

[Bug] "Failed to convert API response into JSON" in all modules of Nutanix.ncp ansible collection #490

Open marathe-99 opened 3 months ago

marathe-99 commented 3 months ago

Describe the bug In this Nutanix Ansible Collection when we ran any of the modules it threw the same error "Failed to convert API response into JSON"

To Reproduce Steps to reproduce the behavior:

  1. ansible command
  2. sample playbook used.

image

Expected behavior It should give the information of the imaged nodes.

Additional context image

marathe-99 commented 3 months ago

Please rectify the issue and resolve the issue it's very important.

konstruktoid commented 3 months ago

Related PR: https://github.com/nutanix/nutanix.ansible/pull/486

bhati-pradeep commented 3 months ago

@marathe-99 meanwhile this issue is resolved (which will need a maintenance release), can you tell me which way are you using this plugin (galaxy, directly building the provider, etc.)? So that I can suggest you a way to look into this error.

Also this error can come if your response was empty.

  1. Verify your spec is as per documented module spec
  2. (Optional) Check the foundation UI if the task has been created or not.