netskopeoss / terraform-provider-netskope

Apache License 2.0
6 stars 5 forks source link

Unable to connect to the backend API #29

Open sharvesh06 opened 4 months ago

sharvesh06 commented 4 months ago

Seeing this error when I run tf plan,

2024-05-06T16:18:22.389Z [TRACE] provider.terraform-provider-netskope_v0.2.6: Calling downstream: @caller=github.com/hashicorp/terraform-plugin-sdk/v2@v2.27.0/helper/schema/resource.go:969 @module=sdk.helper_schema tf_provider_addr=provider tf_req_id=4f6f49cb-ca06-cf70-059e-2d57508e246b tf_data_source_type=netskope_publishers tf_rpc=ReadDataSource timestamp=2024-05-06T16:18:22.389Z
2024-05-06T16:18:23.149Z [TRACE] provider.terraform-provider-netskope_v0.2.6: Called downstream: @caller=github.com/hashicorp/terraform-plugin-sdk/v2@v2.27.0/helper/schema/resource.go:971 tf_provider_addr=provider tf_req_id=4f6f49cb-ca06-cf70-059e-2d57508e246b tf_rpc=ReadDataSource @module=sdk.helper_schema tf_data_source_type=netskope_publishers timestamp=2024-05-06T16:18:23.149Z
2024-05-06T16:18:23.149Z [TRACE] provider.terraform-provider-netskope_v0.2.6: Received downstream response: tf_req_duration_ms=760 @module=sdk.proto diagnostic_error_count=1 tf_rpc=ReadDataSource tf_proto_version=5.3 @caller=github.com/hashicorp/terraform-plugin-go@v0.16.0/tfprotov5/internal/tf5serverlogging/downstream_request.go:40 tf_data_source_type=netskope_publishers tf_provider_addr=provider tf_req_id=4f6f49cb-ca06-cf70-059e-2d57508e246b diagnostic_warning_count=0 timestamp=2024-05-06T16:18:23.149Z
2024-05-06T16:18:23.150Z [ERROR] provider.terraform-provider-netskope_v0.2.6: Response contains error diagnostic: @module=sdk.proto diagnostic_detail="" tf_data_source_type=netskope_publishers tf_proto_version=5.3 tf_provider_addr=provider diagnostic_severity=ERROR @caller=github.com/hashicorp/terraform-plugin-go@v0.16.0/tfprotov5/internal/diag/diagnostics.go:58 diagnostic_summary="Unable to call backend API" tf_req_id=4f6f49cb-ca06-cf70-059e-2d57508e246b tf_rpc=ReadDataSource timestamp=2024-05-06T16:18:23.149Z
2024-05-06T16:18:23.150Z [TRACE] provider.terraform-provider-netskope_v0.2.6: Served request: tf_data_source_type=netskope_publishers tf_provider_addr=provider tf_rpc=ReadDataSource @caller=github.com/hashicorp/terraform-plugin-go@v0.16.0/tfprotov5/tf5server/server.go:673 @module=sdk.proto tf_proto_version=5.3 tf_req_id=4f6f49cb-ca06-cf70-059e-2d57508e246b timestamp=2024-05-06T16:18:23.149Z
2024-05-06T16:18:23.150Z [ERROR] vertex "data.netskope_publishers.this" error: Unable to call backend API
2024-05-06T16:18:23.150Z [TRACE] vertex "data.netskope_publishers.this": visit complete, with errors
2024-05-06T16:18:23.150Z [TRACE] dag/walk: upstream of "root" errored, so skipping
2024-05-06T16:18:23.150Z [TRACE] vertex "data.netskope_publishers.this (expand)": dynamic subgraph encountered errors: Unable to call backend API
2024-05-06T16:18:23.150Z [ERROR] vertex "data.netskope_publishers.this (expand)" error: Unable to call backend API
2024-05-06T16:18:23.150Z [TRACE] vertex "data.netskope_publishers.this (expand)": visit complete, with errors
2024-05-06T16:18:23.150Z [TRACE] dag/walk: upstream of "local.publisher (expand)" errored, so skipping
2024-05-06T16:18:23.150Z [TRACE] dag/walk: upstream of "provider[\"registry.terraform.io/netskopeoss/netskope\"] (close)" errored, so skipping
2024-05-06T16:18:23.150Z [TRACE] dag/walk: upstream of "root" errored, so skipping
2024-05-06T16:18:23.150Z [TRACE] LoadSchemas: retrieving schema for provider type "registry.terraform.io/netskopeoss/netskope"
2024-05-06T16:18:23.150Z [TRACE] terraform.contextPlugins: Schema for provider "registry.terraform.io/netskopeoss/netskope" is in the global cache
2024-05-06T16:18:23.150Z [INFO]  backend/local: plan operation completed
2024-05-06T16:18:23.150Z [TRACE] LoadSchemas: retrieving schema for provider type "registry.terraform.io/netskopeoss/netskope"
2024-05-06T16:18:23.150Z [TRACE] terraform.contextPlugins: Schema for provider "registry.terraform.io/netskopeoss/netskope" is in the global cache

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

╷
│ Error: Unable to call backend API
│ 
│   with data.netskope_publishers.this,
│   on main.tf line 1, in data "netskope_publishers" "this":
│    1: data "netskope_publishers" "this" {
│ 
╵