coder / coder/websocket

failed to WebSocket dial: response body is not a io.ReadWriteCloser: io.nopCloserWriterTo

未关闭
#442 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
needs-response
主要语言
Go
星标
5.5k
派生
372
PR 合并指标
30 天内没有已合并 PR

描述

In the dial method, I got this error "failed to WebSocket dial: response body is not a io.ReadWriteCloser: io.nopCloserWriterTo". There was an error converting the resp returned by the handshakeRequest method to io.ReadWriteCloser.

![image](https://github.com/nhooyr/websocket/assets/29057618/0da1d566-90be-4236-8bcf-d4b1b3efd059)

贡献指南

这个仓库没有索引到贡献指南

调研方向

定位 dial 方法及其对 handshakeRequest 的调用,然后重现报告的失败,并跟踪响应正文如何转换为 io.ReadWriteCloser。将失败的响应路径与预期的 WebSocket 握手行为进行比较;当报告的错误得到解决,或其处理被回归测试覆盖时,即表示完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
go
领域
networking
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
需要澄清
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。