-
Notifications
You must be signed in to change notification settings - Fork 632
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
5.0.0-rc1 terraform provider has error #4891
Comments
Community NoteVoting for Prioritization
Volunteering to Work on This Issue
|
Thank you for reporting this issue! For maintainers to dig into issues it is required that all issues include the entirety of This issue has been marked with |
Do you want to perform these actions? Enter a value: yes 2025-01-15T16:31:15.018+0800 [INFO] backend/local: apply calling Apply
{"title":"test"} : tf_req_id=9f6db453-4b8b-a002-1cf6-4bda46761289 @module=cloudflare tf_provider_addr=registry.terraform.io/cloudflare/cloudflare @caller=github.com/cloudflare/terraform-provider-cloudflare/internal/logging/logging.go:64 tf_resource_type=cloudflare_workers_kv_namespace tf_rpc=ApplyResourceChange timestamp=2025-01-15T16:31:15.127+0800 mismatch between struct and object: Object defines fields not found in struct: etag, placement_status, modified_on, startup_time_ms, placement_mode, has_modules, and has_assets." diagnostic_severity=ERROR diagnostic_summary="Value Conversion Error" tf_req_id=2020e7ea-d4e6-d2ce-f8fc-a1470d666433 tf_resource_type=cloudflare_workers_script timestamp=2025-01-15T16:31:15.145+0800 { : tf_rpc=ApplyResourceChange @caller=github.com/cloudflare/terraform-provider-cloudflare/internal/logging/logging.go:92 @module=cloudflare tf_provider_addr=registry.terraform.io/cloudflare/cloudflare tf_req_id=9f6db453-4b8b-a002-1cf6-4bda46761289 tf_resource_type=cloudflare_workers_kv_namespace timestamp=2025-01-15T16:31:19.366+0800 |
When set TF_LOG=DEBUG, i execute terraform apply , then i got the error . |
I'm getting a similar issue:
It looks like the response from the API doesn't match the shape of the struct:
|
There is nobody can help.. |
Confirmation
Terraform and Cloudflare provider version
When i use 5.0.0-rc1 terraform provider , it returns errors like below.
│ Error: Value Conversion Error
│
│ with cloudflare_workers_script.example_workers_script,
│ An unexpected error was encountered trying to convert tftypes.Value into workers_script.WorkersScriptModel. This is always an error in the provider. Please report the following to the
│ provider developer:
│
│ mismatch between struct and object: Object defines fields not found in struct: startup_time_ms, etag, has_assets, placement_mode, modified_on, has_modules, and placement_status.
Affected resource(s)
resource cloudflare_workers_script
Terraform configuration files
Link to debug output
Do you want to perform these actions?
Terraform will perform the actions described above.
Only 'yes' will be accepted to approve.
Enter a value: yes
2025-01-15T16:31:15.018+0800 [INFO] backend/local: apply calling Apply
2025-01-15T16:31:15.018+0800 [DEBUG] Building and walking apply graph for NormalMode plan
2025-01-15T16:31:15.018+0800 [DEBUG] Resource state not found for node "cloudflare_workers_kv_namespace.workers_kv_namespace", instance cloudflare_workers_kv_namespace.workers_kv_namespace
2025-01-15T16:31:15.018+0800 [DEBUG] Resource state not found for node "cloudflare_workers_script.example_workers_script", instance cloudflare_workers_script.example_workers_script
2025-01-15T16:31:15.018+0800 [DEBUG] ProviderTransformer: "cloudflare_workers_script.example_workers_script" (*terraform.NodeApplyableResourceInstance) needs provider["registry.terraform.io/cloudflare/cloudflare"]
2025-01-15T16:31:15.018+0800 [DEBUG] ProviderTransformer: "cloudflare_workers_kv_namespace.workers_kv_namespace (expand)" (*terraform.nodeExpandApplyableResource) needs provider["registry.terraform.io/cloudflare/cloudflare"]
2025-01-15T16:31:15.018+0800 [DEBUG] ProviderTransformer: "cloudflare_workers_script.example_workers_script (expand)" (*terraform.nodeExpandApplyableResource) needs provider["registry.terraform.io/cloudflare/cloudflare"]
2025-01-15T16:31:15.019+0800 [DEBUG] ProviderTransformer: "cloudflare_workers_kv_namespace.workers_kv_namespace" (*terraform.NodeApplyableResourceInstance) needs provider["registry.terraform.io/cloudflare/cloudflare"]
2025-01-15T16:31:15.019+0800 [DEBUG] ReferenceTransformer: "cloudflare_workers_kv_namespace.workers_kv_namespace (expand)" references: []
2025-01-15T16:31:15.019+0800 [DEBUG] ReferenceTransformer: "cloudflare_workers_script.example_workers_script (expand)" references: []
2025-01-15T16:31:15.019+0800 [DEBUG] ReferenceTransformer: "output.name (expand)" references: [cloudflare_workers_kv_namespace.workers_kv_namespace (expand) cloudflare_workers_kv_namespace.workers_kv_namespace cloudflare_workers_kv_namespace.workers_kv_namespace]
2025-01-15T16:31:15.019+0800 [DEBUG] ReferenceTransformer: "cloudflare_workers_kv_namespace.workers_kv_namespace" references: []
2025-01-15T16:31:15.019+0800 [DEBUG] ReferenceTransformer: "cloudflare_workers_script.example_workers_script" references: []
2025-01-15T16:31:15.019+0800 [DEBUG] ReferenceTransformer: "provider["registry.terraform.io/cloudflare/cloudflare"]" references: []
2025-01-15T16:31:15.020+0800 [DEBUG] Starting graph walk: walkApply
2025-01-15T16:31:15.021+0800 [DEBUG] created provider logger: level=debug
2025-01-15T16:31:15.021+0800 [INFO] provider: configuring client automatic mTLS
2025-01-15T16:31:15.025+0800 [DEBUG] provider: starting plugin: path=.terraform/providers/registry.terraform.io/cloudflare/cloudflare/5.0.0-rc1/darwin_arm64/terraform-provider-cloudflare_v5.0.0-rc1 args=[.terraform/providers/registry.terraform.io/cloudflare/cloudflare/5.0.0-rc1/darwin_arm64/terraform-provider-cloudflare_v5.0.0-rc1]
2025-01-15T16:31:15.030+0800 [DEBUG] provider: plugin started: path=.terraform/providers/registry.terraform.io/cloudflare/cloudflare/5.0.0-rc1/darwin_arm64/terraform-provider-cloudflare_v5.0.0-rc1 pid=43261
2025-01-15T16:31:15.030+0800 [DEBUG] provider: waiting for RPC address: path=.terraform/providers/registry.terraform.io/cloudflare/cloudflare/5.0.0-rc1/darwin_arm64/terraform-provider-cloudflare_v5.0.0-rc1
2025-01-15T16:31:15.053+0800 [INFO] provider.terraform-provider-cloudflare_v5.0.0-rc1: configuring server automatic mTLS: timestamp=2025-01-15T16:31:15.053+0800
2025-01-15T16:31:15.060+0800 [DEBUG] provider: using plugin: version=6
2025-01-15T16:31:15.060+0800 [DEBUG] provider.terraform-provider-cloudflare_v5.0.0-rc1: plugin address: address=/var/folders/k6/n67v29s97t9g64gp2zd081m80000gq/T/plugin585257130 network=unix timestamp=2025-01-15T16:31:15.060+0800
2025-01-15T16:31:15.107+0800 [DEBUG] No provider meta schema returned
2025-01-15T16:31:15.122+0800 [DEBUG] skipping FixUpBlockAttrs
2025-01-15T16:31:15.125+0800 [DEBUG] provider.terraform-provider-cloudflare_v5.0.0-rc1: Marking Computed attributes with null configuration values as unknown (known after apply) in the plan to prevent potential Terraform errors: @module=sdk.framework tf_provider_addr=registry.terraform.io/cloudflare/cloudflare tf_rpc=PlanResourceChange @caller=github.com/hashicorp/terraform-plugin-framework@v1.13.0/internal/fwserver/server_planresourcechange.go:217 tf_req_id=887d290a-a7bc-4bb0-c100-debb56a704c6 tf_resource_type=cloudflare_workers_kv_namespace timestamp=2025-01-15T16:31:15.125+0800
2025-01-15T16:31:15.125+0800 [DEBUG] provider.terraform-provider-cloudflare_v5.0.0-rc1: marking computed attribute that is null in the config as unknown: tf_rpc=PlanResourceChange @caller=github.com/hashicorp/terraform-plugin-framework@v1.13.0/internal/fwserver/server_planresourcechange.go:467 tf_provider_addr=registry.terraform.io/cloudflare/cloudflare tf_resource_type=cloudflare_workers_kv_namespace @module=sdk.framework tf_attribute_path=AttributeName("id") tf_req_id=887d290a-a7bc-4bb0-c100-debb56a704c6 timestamp=2025-01-15T16:31:15.125+0800
2025-01-15T16:31:15.125+0800 [DEBUG] provider.terraform-provider-cloudflare_v5.0.0-rc1: marking computed attribute that is null in the config as unknown: tf_attribute_path=AttributeName("supports_url_encoding") tf_resource_type=cloudflare_workers_kv_namespace tf_rpc=PlanResourceChange @caller=github.com/hashicorp/terraform-plugin-framework@v1.13.0/internal/fwserver/server_planresourcechange.go:467 @module=sdk.framework tf_provider_addr=registry.terraform.io/cloudflare/cloudflare tf_req_id=887d290a-a7bc-4bb0-c100-debb56a704c6 timestamp=2025-01-15T16:31:15.125+0800
cloudflare_workers_kv_namespace.workers_kv_namespace: Creating...
2025-01-15T16:31:15.125+0800 [INFO] Starting apply for cloudflare_workers_kv_namespace.workers_kv_namespace
2025-01-15T16:31:15.126+0800 [DEBUG] cloudflare_workers_kv_namespace.workers_kv_namespace: applying the planned Create change
2025-01-15T16:31:15.127+0800 [DEBUG] provider.terraform-provider-cloudflare_v5.0.0-rc1:
POST /client/v4/accounts/xxxxxxxx/storage/kv/namespaces HTTP/1.1
{"title":"test"}
: tf_req_id=9f6db453-4b8b-a002-1cf6-4bda46761289 @module=cloudflare tf_provider_addr=registry.terraform.io/cloudflare/cloudflare @caller=github.com/cloudflare/terraform-provider-cloudflare/internal/logging/logging.go:64 tf_resource_type=cloudflare_workers_kv_namespace tf_rpc=ApplyResourceChange timestamp=2025-01-15T16:31:15.127+0800
2025-01-15T16:31:15.135+0800 [DEBUG] provider.terraform-provider-cloudflare_v5.0.0-rc1: Marking Computed attributes with null configuration values as unknown (known after apply) in the plan to prevent potential Terraform errors: tf_provider_addr=registry.terraform.io/cloudflare/cloudflare tf_req_id=ca7ef130-d6fb-93d7-22d4-b49d834a0132 tf_resource_type=cloudflare_workers_script @caller=github.com/hashicorp/terraform-plugin-framework@v1.13.0/internal/fwserver/server_planresourcechange.go:217 @module=sdk.framework tf_rpc=PlanResourceChange timestamp=2025-01-15T16:31:15.135+0800
2025-01-15T16:31:15.135+0800 [DEBUG] provider.terraform-provider-cloudflare_v5.0.0-rc1: marking computed attribute that is null in the config as unknown: tf_resource_type=cloudflare_workers_script @caller=github.com/hashicorp/terraform-plugin-framework@v1.13.0/internal/fwserver/server_planresourcechange.go:467 tf_attribute_path=AttributeName("etag") tf_provider_addr=registry.terraform.io/cloudflare/cloudflare @module=sdk.framework tf_req_id=ca7ef130-d6fb-93d7-22d4-b49d834a0132 tf_rpc=PlanResourceChange timestamp=2025-01-15T16:31:15.135+0800
2025-01-15T16:31:15.135+0800 [DEBUG] provider.terraform-provider-cloudflare_v5.0.0-rc1: marking computed attribute that is null in the config as unknown: tf_attribute_path=AttributeName("placement") tf_provider_addr=registry.terraform.io/cloudflare/cloudflare @caller=github.com/hashicorp/terraform-plugin-framework@v1.13.0/internal/fwserver/server_planresourcechange.go:467 tf_req_id=ca7ef130-d6fb-93d7-22d4-b49d834a0132 tf_resource_type=cloudflare_workers_script tf_rpc=PlanResourceChange @module=sdk.framework timestamp=2025-01-15T16:31:15.135+0800
2025-01-15T16:31:15.135+0800 [DEBUG] provider.terraform-provider-cloudflare_v5.0.0-rc1: marking computed attribute that is null in the config as unknown: tf_provider_addr=registry.terraform.io/cloudflare/cloudflare tf_rpc=PlanResourceChange @caller=github.com/hashicorp/terraform-plugin-framework@v1.13.0/internal/fwserver/server_planresourcechange.go:467 @module=sdk.framework tf_attribute_path=AttributeName("placement_status") tf_req_id=ca7ef130-d6fb-93d7-22d4-b49d834a0132 tf_resource_type=cloudflare_workers_script timestamp=2025-01-15T16:31:15.135+0800
2025-01-15T16:31:15.135+0800 [DEBUG] provider.terraform-provider-cloudflare_v5.0.0-rc1: marking computed attribute that is null in the config as unknown: tf_provider_addr=registry.terraform.io/cloudflare/cloudflare tf_req_id=ca7ef130-d6fb-93d7-22d4-b49d834a0132 tf_resource_type=cloudflare_workers_script tf_rpc=PlanResourceChange @caller=github.com/hashicorp/terraform-plugin-framework@v1.13.0/internal/fwserver/server_planresourcechange.go:467 tf_attribute_path=AttributeName("usage_model") @module=sdk.framework timestamp=2025-01-15T16:31:15.135+0800
2025-01-15T16:31:15.135+0800 [DEBUG] provider.terraform-provider-cloudflare_v5.0.0-rc1: marking computed attribute that is null in the config as unknown: tf_attribute_path=AttributeName("tail_consumers") tf_resource_type=cloudflare_workers_script @module=sdk.framework tf_rpc=PlanResourceChange @caller=github.com/hashicorp/terraform-plugin-framework@v1.13.0/internal/fwserver/server_planresourcechange.go:467 tf_provider_addr=registry.terraform.io/cloudflare/cloudflare tf_req_id=ca7ef130-d6fb-93d7-22d4-b49d834a0132 timestamp=2025-01-15T16:31:15.135+0800
2025-01-15T16:31:15.136+0800 [DEBUG] provider.terraform-provider-cloudflare_v5.0.0-rc1: marking computed attribute that is null in the config as unknown: tf_resource_type=cloudflare_workers_script @module=sdk.framework tf_provider_addr=registry.terraform.io/cloudflare/cloudflare tf_rpc=PlanResourceChange @caller=github.com/hashicorp/terraform-plugin-framework@v1.13.0/internal/fwserver/server_planresourcechange.go:467 tf_attribute_path=AttributeName("placement_mode") tf_req_id=ca7ef130-d6fb-93d7-22d4-b49d834a0132 timestamp=2025-01-15T16:31:15.135+0800
2025-01-15T16:31:15.136+0800 [DEBUG] provider.terraform-provider-cloudflare_v5.0.0-rc1: marking computed attribute that is null in the config as unknown: tf_attribute_path=AttributeName("modified_on") tf_provider_addr=registry.terraform.io/cloudflare/cloudflare tf_req_id=ca7ef130-d6fb-93d7-22d4-b49d834a0132 tf_resource_type=cloudflare_workers_script tf_rpc=PlanResourceChange @caller=github.com/hashicorp/terraform-plugin-framework@v1.13.0/internal/fwserver/server_planresourcechange.go:467 @module=sdk.framework timestamp=2025-01-15T16:31:15.135+0800
2025-01-15T16:31:15.136+0800 [DEBUG] provider.terraform-provider-cloudflare_v5.0.0-rc1: marking computed attribute that is null in the config as unknown: @module=sdk.framework tf_attribute_path=AttributeName("startup_time_ms") tf_req_id=ca7ef130-d6fb-93d7-22d4-b49d834a0132 tf_resource_type=cloudflare_workers_script tf_rpc=PlanResourceChange @caller=github.com/hashicorp/terraform-plugin-framework@v1.13.0/internal/fwserver/server_planresourcechange.go:467 tf_provider_addr=registry.terraform.io/cloudflare/cloudflare timestamp=2025-01-15T16:31:15.135+0800
2025-01-15T16:31:15.136+0800 [DEBUG] provider.terraform-provider-cloudflare_v5.0.0-rc1: marking computed attribute that is null in the config as unknown: tf_attribute_path=AttributeName("has_modules") tf_req_id=ca7ef130-d6fb-93d7-22d4-b49d834a0132 tf_resource_type=cloudflare_workers_script tf_rpc=PlanResourceChange @caller=github.com/hashicorp/terraform-plugin-framework@v1.13.0/internal/fwserver/server_planresourcechange.go:467 tf_provider_addr=registry.terraform.io/cloudflare/cloudflare @module=sdk.framework timestamp=2025-01-15T16:31:15.136+0800
2025-01-15T16:31:15.136+0800 [DEBUG] provider.terraform-provider-cloudflare_v5.0.0-rc1: marking computed attribute that is null in the config as unknown: tf_provider_addr=registry.terraform.io/cloudflare/cloudflare tf_req_id=ca7ef130-d6fb-93d7-22d4-b49d834a0132 tf_resource_type=cloudflare_workers_script tf_rpc=PlanResourceChange @module=sdk.framework tf_attribute_path=AttributeName("id") @caller=github.com/hashicorp/terraform-plugin-framework@v1.13.0/internal/fwserver/server_planresourcechange.go:467 timestamp=2025-01-15T16:31:15.136+0800
2025-01-15T16:31:15.136+0800 [DEBUG] provider.terraform-provider-cloudflare_v5.0.0-rc1: marking computed attribute that is null in the config as unknown: @module=sdk.framework tf_req_id=ca7ef130-d6fb-93d7-22d4-b49d834a0132 tf_attribute_path=AttributeName("observability") tf_provider_addr=registry.terraform.io/cloudflare/cloudflare tf_resource_type=cloudflare_workers_script tf_rpc=PlanResourceChange @caller=github.com/hashicorp/terraform-plugin-framework@v1.13.0/internal/fwserver/server_planresourcechange.go:467 timestamp=2025-01-15T16:31:15.136+0800
2025-01-15T16:31:15.136+0800 [DEBUG] provider.terraform-provider-cloudflare_v5.0.0-rc1: marking computed attribute that is null in the config as unknown: tf_resource_type=cloudflare_workers_script tf_rpc=PlanResourceChange @caller=github.com/hashicorp/terraform-plugin-framework@v1.13.0/internal/fwserver/server_planresourcechange.go:467 @module=sdk.framework tf_attribute_path=AttributeName("has_assets") tf_req_id=ca7ef130-d6fb-93d7-22d4-b49d834a0132 tf_provider_addr=registry.terraform.io/cloudflare/cloudflare timestamp=2025-01-15T16:31:15.136+0800
2025-01-15T16:31:15.136+0800 [DEBUG] provider.terraform-provider-cloudflare_v5.0.0-rc1: marking computed attribute that is null in the config as unknown: tf_req_id=ca7ef130-d6fb-93d7-22d4-b49d834a0132 @module=sdk.framework tf_attribute_path=AttributeName("migrations") tf_provider_addr=registry.terraform.io/cloudflare/cloudflare @caller=github.com/hashicorp/terraform-plugin-framework@v1.13.0/internal/fwserver/server_planresourcechange.go:467 tf_resource_type=cloudflare_workers_script tf_rpc=PlanResourceChange timestamp=2025-01-15T16:31:15.136+0800
2025-01-15T16:31:15.136+0800 [DEBUG] provider.terraform-provider-cloudflare_v5.0.0-rc1: marking computed attribute that is null in the config as unknown: @caller=github.com/hashicorp/terraform-plugin-framework@v1.13.0/internal/fwserver/server_planresourcechange.go:467 tf_provider_addr=registry.terraform.io/cloudflare/cloudflare tf_resource_type=cloudflare_workers_script @module=sdk.framework tf_attribute_path=AttributeName("logpush") tf_req_id=ca7ef130-d6fb-93d7-22d4-b49d834a0132 tf_rpc=PlanResourceChange timestamp=2025-01-15T16:31:15.136+0800
cloudflare_workers_script.example_workers_script: Creating...
2025-01-15T16:31:15.142+0800 [INFO] Starting apply for cloudflare_workers_script.example_workers_script
2025-01-15T16:31:15.142+0800 [DEBUG] skipping FixUpBlockAttrs
2025-01-15T16:31:15.143+0800 [DEBUG] cloudflare_workers_script.example_workers_script: applying the planned Create change
2025-01-15T16:31:15.145+0800 [ERROR] provider.terraform-provider-cloudflare_v5.0.0-rc1: Response contains error diagnostic: @caller=github.com/hashicorp/terraform-plugin-go@v0.25.0/tfprotov6/internal/diag/diagnostics.go:58 diagnostic_attribute= tf_proto_version=6.7 tf_rpc=ApplyResourceChange @module=sdk.proto tf_provider_addr=registry.terraform.io/cloudflare/cloudflare diagnostic_detail="An unexpected error was encountered trying to convert tftypes.Value into workers_script.WorkersScriptModel. This is always an error in the provider. Please report the following to the provider developer:
mismatch between struct and object: Object defines fields not found in struct: etag, placement_status, modified_on, startup_time_ms, placement_mode, has_modules, and has_assets." diagnostic_severity=ERROR diagnostic_summary="Value Conversion Error" tf_req_id=2020e7ea-d4e6-d2ce-f8fc-a1470d666433 tf_resource_type=cloudflare_workers_script timestamp=2025-01-15T16:31:15.145+0800
2025-01-15T16:31:15.155+0800 [DEBUG] State storage *statemgr.Filesystem declined to persist a state snapshot
2025-01-15T16:31:15.155+0800 [ERROR] vertex "cloudflare_workers_script.example_workers_script" error: Value Conversion Error
2025-01-15T16:31:19.366+0800 [DEBUG] provider.terraform-provider-cloudflare_v5.0.0-rc1:
< HTTP/2.0 200 OK
< date: Wed, 15 Jan 2025 08:31:19 GMT
< cf-cache-status: DYNAMIC
< set-cookie: __cflb=0H28vgHxwvgAQtjUGU4yFBDJQfw1pfzuUqbBSnb5jw3; SameSite=Lax; path=/; expires=Wed, 15-Jan-25 11:01:20 GMT; HttpOnly
< set-cookie: __cf_bm=6I6CLtjY.NLg3ZWAEUTK7bab5gl4jOi_l5VksZSSj8k-1736929879-1.0.1.1-NUMUtSaEWPi55nJrepEg7K7Y4sgDjrg_VhXSnluta9wK8LHIvMgQYhc.0pfpzB2YIRlr9jfZ.p25f0ehZsk7FA; path=/; expires=Wed, 15-Jan-25 09:01:19 GMT; domain=.api.cloudflare.com; HttpOnly; Secure; SameSite=None
< set-cookie: __cfruid=7ee4140f208f57e8fa84a86497998e7e62bce786-1736929879; path=/; domain=.api.cloudflare.com; HttpOnly; Secure; SameSite=None
< vary: Accept-Encoding
< server: cloudflare
< content-type: application/json; charset=UTF-8
< cf-ray: 9024822fcb409cd1-SIN
< cache-control: no-store, no-cache, must-revalidate
< cf-auditlog-id: 01946916-99f6-7e72-9e6a-226b0df3cc37
<
{
"result": {
"id": "c7d588be7e354bb88f223b3db2dd8f25",
"title": "test",
"supports_url_encoding": true
},
"success": true,
"errors": [],
"messages": []
}
: tf_rpc=ApplyResourceChange @caller=github.com/cloudflare/terraform-provider-cloudflare/internal/logging/logging.go:92 @module=cloudflare tf_provider_addr=registry.terraform.io/cloudflare/cloudflare tf_req_id=9f6db453-4b8b-a002-1cf6-4bda46761289 tf_resource_type=cloudflare_workers_kv_namespace timestamp=2025-01-15T16:31:19.366+0800
2025-01-15T16:31:19.367+0800 [DEBUG] provider.terraform-provider-cloudflare_v5.0.0-rc1: Value switched to prior value due to semantic equality logic: @caller=github.com/hashicorp/terraform-plugin-framework@v1.13.0/internal/fwschemadata/value_semantic_equality.go:91 tf_attribute_path=title tf_provider_addr=registry.terraform.io/cloudflare/cloudflare @module=sdk.framework tf_req_id=9f6db453-4b8b-a002-1cf6-4bda46761289 tf_resource_type=cloudflare_workers_kv_namespace tf_rpc=ApplyResourceChange timestamp=2025-01-15T16:31:19.366+0800
cloudflare_workers_kv_namespace.workers_kv_namespace: Creation complete after 4s [id=c7d588be7e354bb88f223b3db2dd8f25]
2025-01-15T16:31:19.370+0800 [DEBUG] provider.terraform-provider-cloudflare_v5.0.0-rc1: Value switched to prior value due to semantic equality logic: tf_provider_addr=registry.terraform.io/cloudflare/cloudflare tf_req_id=9f6db453-4b8b-a002-1cf6-4bda46761289 tf_resource_type=cloudflare_workers_kv_namespace tf_attribute_path=account_id @module=sdk.framework tf_rpc=ApplyResourceChange @caller=github.com/hashicorp/terraform-plugin-framework@v1.13.0/internal/fwschemadata/value_semantic_equality.go:91 timestamp=2025-01-15T16:31:19.367+0800
2025-01-15T16:31:19.376+0800 [DEBUG] State storage *statemgr.Filesystem declined to persist a state snapshot
╷
│ Error: Value Conversion Error
│
│ with cloudflare_workers_script.example_workers_script,
│ An unexpected error was encountered trying to convert tftypes.Value into workers_script.WorkersScriptModel. This is always an error in the provider. Please report the following to the
│ provider developer:
│
│ mismatch between struct and object: Object defines fields not found in struct: etag, placement_status, modified_on, startup_time_ms, placement_mode, has_modules, and has_assets.
╵
2025-01-15T16:31:19.389+0800 [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = error reading from server: EOF"
2025-01-15T16:31:19.392+0800 [DEBUG] provider: plugin process exited: path=.terraform/providers/registry.terraform.io/cloudflare/cloudflare/5.0.0-rc1/darwin_arm64/terraform-provider-cloudflare_v5.0.0-rc1 pid=43261
2025-01-15T16:31:19.392+0800 [DEBUG] provider: plugin exited
Panic output
cloudflare_workers_kv_namespace.workers_kv_namespace: Creating...
cloudflare_workers_script.example_workers_script: Creating...
cloudflare_workers_kv_namespace.workers_kv_namespace: Creation complete after 5s [id=969df8d80dbb4587902740aedc58e1ef]
╷
│ Error: Value Conversion Error
│
│ with cloudflare_workers_script.example_workers_script,
│ An unexpected error was encountered trying to convert tftypes.Value into workers_script.WorkersScriptModel. This is always an error in the provider. Please report the following to the
│ provider developer:
│
│ mismatch between struct and object: Object defines fields not found in struct: startup_time_ms, etag, has_assets, placement_mode, modified_on, has_modules, and placement_status.
╵
Expected output
terraform apply successfully
Actual output
cloudflare_workers_kv_namespace.workers_kv_namespace: Creating...
cloudflare_workers_script.example_workers_script: Creating...
cloudflare_workers_kv_namespace.workers_kv_namespace: Creation complete after 5s [id=969df8d80dbb4587902740aedc58e1ef]
╷
│ Error: Value Conversion Error
│
│ with cloudflare_workers_script.example_workers_script,
│ An unexpected error was encountered trying to convert tftypes.Value into workers_script.WorkersScriptModel. This is always an error in the provider. Please report the following to the
│ provider developer:
│
│ mismatch between struct and object: Object defines fields not found in struct: startup_time_ms, etag, has_assets, placement_mode, modified_on, has_modules, and placement_status.
╵
Steps to reproduce
`terraform {
required_providers {
cloudflare = {
source = "cloudflare/cloudflare"
version = "5.0.0-rc1"
}
}
}
provider "cloudflare" {
api_token = "xxxxxx"
}
2. add main.tf
resource "cloudflare_workers_kv_namespace" "workers_kv_namespace" {
account_id = "xxxxxxxx"
title = "test"
}
resource "cloudflare_workers_script" "example_workers_script" {
account_id = "xxxxxxxx"
script_name = "test"
content = file("index.js")
}`
Additional factoids
No response
References
No response
The text was updated successfully, but these errors were encountered: