coder / coder/websocket

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

Ouverte
#442 2 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
needs-response
Langage dominant
Go
Étoiles
5.5k
Forks
372
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

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)

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Piste de recherche

Locate the dial method and its handshakeRequest call, then reproduce the reported failure and trace how the response body is converted to io.ReadWriteCloser. Compare the failing response path with the expected WebSocket handshake behavior; done means the reported error is resolved or its handling is covered by a regression test.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
go
Domaine
networking
Type d'issue
Bug
Difficulté
3/5
Temps estimé
1-2 jours
Activité
À l'abandon
Clarté
À clarifier
Accessibilité débutants
35/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.