jdamata / terraform-provider-sonarqube

Terraform provider for managing Sonarqube configuration
GNU General Public License v3.0
62 stars 50 forks source link

Can not refresh the state #222

Closed humpalu closed 7 months ago

humpalu commented 7 months ago

Hi,

I have a sonarqube server what installed with terraform. Now I getting the error from the plan.

Terraform Version

Run terraform -v to show the version. If you are not running the latest version of Terraform, please upgrade because your issue may have already been fixed. 1.6.3

Affected Resource(s)

Terraform Configuration Files

# Copy-paste your Terraform configurations here - for large Terraform configs,

Expected Behavior

State refresh for my project.It was created with terraform previously.

Actual Behavior

Error: failed to decode error response json into struct: EOF

In details:

2023-11-17T12:43:04.895+0100 [ERROR] provider.terraform-provider-sonarqube_v0.16.9: Response contains error diagnostic: tf_resource_type=sonarqube_project tf_rpc=ReadResource diagnostic_summary="failed to decode error response json into struct: EOF" @module=sdk.proto diagnostic_detail="" tf_proto_version=5.3 @caller=github.com/hashicorp/terraform-plugin-go@v0.18.0/tfprotov5/internal/diag/diagnostics.go:58 tf_req_id=34310394-0839-5946-d15c-da3ab2c67fd1 tf_provider_addr=registry.terraform.io/jdamata/sonarqube diagnostic_severity=ERROR timestamp="2023-11-17T12:43:04.895+0100"
2023-11-17T12:43:04.895+0100 [ERROR] vertex "sonarqube_project.myproject" error: failed to decode error response json into struct: EOF
2023-11-17T12:43:04.895+0100 [ERROR] vertex "sonarqube_project.myproject (expand)" error: failed to decode error response json into struct: EOF

The project is there, the link is good, and working. No permission issue 2023-11-17T12:53:07.112+0100 [DEBUG] provider.terraform-provider-sonarqube_v0.16.9: 2023/11/17 12:53:07 [DEBUG] GET https://:mypassword@sonar.mysonar/api/components/show?component=project%3myproject

Steps to Reproduce

Please list the steps required to reproduce the issue, for example:

  1. terraform plan

References

Are there any other GitHub issues (open or closed) or Pull Requests that should be linked here? For example:

humpalu commented 7 months ago

I forgot to export the admin user