We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 012ae7a commit 37d7c38Copy full SHA for 37d7c38
internal/plugin6/grpc_provider.go
@@ -1556,7 +1556,10 @@ func (p *GRPCProvider) ReadStateBytes(r providers.ReadStateBytesRequest) (resp p
1556
chunk, err := client.Recv()
1557
if err == io.EOF {
1558
// End of stream, we're done
1559
- resp.Diagnostics = resp.Diagnostics.Append(convert.ProtoToDiagnostics(chunk.Diagnostics))
+ if chunk != nil {
1560
+ // TODO: The EOF error could be just returned alongside the last chunk?
1561
+ resp.Diagnostics = resp.Diagnostics.Append(convert.ProtoToDiagnostics(chunk.Diagnostics))
1562
+ }
1563
break
1564
}
1565
if err != nil {
0 commit comments