open-telemetry / opamp-go

OpAMP protocol implementation in Go
Apache License 2.0
146 stars 71 forks source link

Unexpected error while receiving: websocket: close sent #268

Closed srikanthccv closed 7 months ago

srikanthccv commented 7 months ago

The logs of the supervisor test show the error. I think there are some cases graceful shutdown fix didn't handle.

2024-04-03T21:39:20.809+0530    DEBUG   supervisor/logger.go:21 Waiting for receiver to stop.
2024-04-03T21:39:20.809+0530    ERROR   supervisor/logger.go:26 Unexpected error while receiving: websocket: close sent
github.com/open-telemetry/opentelemetry-collector-contrib/cmd/opampsupervisor/supervisor.(*opAMPLogger).Errorf
    /Users/srikanth/Projects/opentelemetry-collector-contrib/cmd/opampsupervisor/supervisor/logger.go:26
github.com/open-telemetry/opamp-go/client/internal.(*wsReceiver).ReceiverLoop
    /Users/srikanth/go/pkg/mod/github.com/open-telemetry/opamp-go@v0.14.0/client/internal/wsreceiver.go:88
srikanthccv commented 7 months ago

nvm, this was a incorrect setup on local machine