revdotcom / revai-go

Rev.ai golang client
https://www.rev.ai/docs
MIT License
21 stars 12 forks source link

panic: repeated read on failed websocket connection #15

Closed jdupl123 closed 3 years ago

jdupl123 commented 3 years ago

https://github.com/threeaccents/revai-go/blob/cf7acb41981be028560645c82f9c2285060fc198/stream.go#L222

seems to be missing some errors. As a consequence we are getting a panic.

This panic indicates read is being called even though the socket has closed/failed. https://github.com/gorilla/websocket/blob/c3dd95aea9779669bb3daafbd84ee0530c8ce1c1/conn.go#L1001