You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unfortunately I cannot provide you a way to reproduce.
I am currently developing a provider, but I am not using the official sdk (I interact directly with the grpc protocol)
terraform crashes during the getSchema operation. I have pasted you my own log file where the schema has been dumped.
It appears that your provider is returning a nil value for a resource block schema, which Terraform is not expecting to handle. The fix in Terraform should be straightforward, checking for a nil value and returning an appropriate error.
I also noticed part of a traceback in the provider logs too, which may indicate that the provider itself encountered an error which is could be contributing to this.
In addition to what @jbardin said, I'd also note that this is a tricky situation where although we could potentially make a null value just be silently ignored, if we were to do that now then it'd be possible to write a provider that would succeed on newer Terraform versions (where provider developers are most likely to test) but fail on older versions, and thus create difficult-to-diagnose failures.
For that reason, I'd echo @jbardin's point that it'd be better to fix this by explicitly returning an error saying that the provider's response was invalid, so that although it would no longer panic it would still indicate a problem to be solved in the provider-side code in order for the plugin to work successfully for all Terraform versions which support the relevant plugin protocol.
Terraform Version
Terraform Configuration Files
...
Debug Output
tflog.traces.txt
Crash Output
crash.610505221.log
Expected Behavior
not crash
Actual Behavior
crash
Steps to Reproduce
Unfortunately I cannot provide you a way to reproduce.
I am currently developing a provider, but I am not using the official sdk (I interact directly with the grpc protocol)
terraform crashes during the getSchema operation. I have pasted you my own log file where the schema has been dumped.
Additional Context
pytera.log
References
The text was updated successfully, but these errors were encountered: