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 ef58611 commit d4cb951Copy full SHA for d4cb951
internal/plugin6/grpc_provider.go
@@ -1516,7 +1516,10 @@ func (p *GRPCProvider) ReadStateBytes(r providers.ReadStateBytesRequest) (resp p
1516
chunk, err := client.Recv()
1517
if err == io.EOF {
1518
// End of stream, we're done
1519
- resp.Diagnostics = resp.Diagnostics.Append(convert.ProtoToDiagnostics(chunk.Diagnostics))
+ if chunk != nil {
1520
+ // TODO: The EOF error could be just returned alongside the last chunk?
1521
+ resp.Diagnostics = resp.Diagnostics.Append(convert.ProtoToDiagnostics(chunk.Diagnostics))
1522
+ }
1523
break
1524
}
1525
if err != nil {
0 commit comments