Panic: Invalid diagnostic: empty summary

We would want to understand, when we generally encounter this error…
We have an existing infrastructure which uses terraform templates and was working perfectly fine earlier…
We had encounter this issue all of a sudden and it got resolved by itself…

It would be very helpful if we understand why we get this error… So that our provider can be fixed accordingly…

 The plugin encountered an error, and failed to respond to the plugin.(*GRPCProvider).ReadResource call. The plugin logs may contain more details.

Stack trace from the terraform-provider-ibm_v1.29.0 plugin:

panic: Invalid diagnostic: empty summary. This is always a bug in the provider implementation

goroutine 344 [running]:, 0x1, 0x1, 0xc000bdb500, 0x18, 0x18) +0x35c, 0x0, 0x0, 0x23f3160, 0xc000bdb500, 0xc0015f8000, 0xc00033c770, 0xc001289400) +0x99*GRPCProviderServer).ReadResource(0xc00042f710, 0x2c9ba48, 0xc0000af680, 0xc0000af6c0, 0xc0000af680, 0x40ba05, 0x2636560) +0x4b9*server).ReadResource(0xc000b692a0, 0x2c9baf0, 0xc0000af680, 0xc000a374a0, 0xc000b692a0, 0xc000a519e0, 0xc0009c1ba0) +0x105, 0xc000b692a0, 0x2c9baf0, 0xc000a519e0, 0xc000a37440, 0x0, 0x2c9baf0, 0xc000a519e0, 0xc000b78d80, 0x20e) +0x214*Server).processUnaryRPC(0xc000b96000, 0x2cb47b8, 0xc000403c80, 0xc0012c8b00, 0xc000674960, 0x39dd430, 0x0, 0x0, 0x0) +0x52b*Server).handleStream(0xc000b96000, 0x2cb47b8, 0xc000403c80, 0xc0012c8b00, 0x0) +0xd0c*Server).serveStreams.func1.2(0xc00049a500, 0xc000b96000, 0x2cb47b8, 0xc000403c80, 0xc0012c8b00) +0xab
created by*Server).serveStreams.func1 +0x1fd

Error: The terraform-provider-ibm_v1.29.0 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 maintainers so that it
can be fixed. The output above should help diagnose the issue.

Your provider is trying to return a diagnostic that has no summary set on it. It seems like this diagnostic is only returned sometimes.

@paddy thanks…
What does empty summary mean?
We don’t find any reference to resource / data source in the crash log…
How to debug and identify which one resulted this error?

It means the Summary property of the diag.Diagnostic is either not being set, or is set to the empty string.

It looks like, according to the panic report, the diagnostic is likely to be in the Read function for a resource. I’d love an issue to add more detail to that panic message, though. :slight_smile:

Thank you… I have raised one…

Thanks… :slight_smile: