Provider panic when importing a cloudflare_workers_script #3949
Labels
kind/bug
Categorizes issue or PR as related to a bug.
needs-triage
Indicates an issue or PR lacks a `triage/foo` label and requires one.
triage/debug-log-attached
Indicates an issue or PR has a complete Terraform debug log.
Confirmation
Terraform and Cloudflare provider version
Terraform v1.9.5
on windows_amd64
Affected resource(s)
Terraform configuration files
I copied these from a larger repository. However they will work on their own.
Link to debug output
https://gist.github.com/Dieff/a5dfd6e2f502a133aec0220fcb5c60c0
Panic output
│ Error: Plugin did not respond
│
│ The plugin encountered an error, and failed to respond to the plugin6.(*GRPCProvider).ImportResourceState call. The plugin logs may contain more details.
╵
Stack trace from the terraform-provider-cloudflare_v4.41.0.exe plugin:
panic: interface conversion: interface {} is nil, not string
Error: The terraform-provider-cloudflare_v4.41.0.exe plugin crashed!
This is always indicative of a bug within the plugin. It would be immensely
helpful if you could report the crash with the plugin's maintaine
Expected output
I expected the cloudflare worker to be imported successfully. I imported several other workers in a similar way with no issues.
Actual output
The provider crashes during import.
Steps to reproduce
The provided
main.tf
file triggers the panic with a specific cloudflare worker. I haven't encountered the panic with other workers.The
dev_drs_failover
cloudflare worker script is a simple worker written in Typescript and using the modules syntax. It has a single durable object binding. I am wondering if the durable object binding is causing the issue.Additional factoids
No response
References
No response
The text was updated successfully, but these errors were encountered: