The WebSocket request or response contained unsupported header(s).

オープン
#64 コメント 0 件 リアクション 1 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
25/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
csharp, unity

調査の方向性

まず NativeWebSocket の TLS および WebSocket クライアントの初期化箇所を特定し、次に Unity 2020.3.2f1 を使って wss 接続を再現します。プラグインの設定を、報告されている SslConfiguration.EnabledSslProtocols = SslProtocolsExtensions.Tls12 の設定と比較します。wss ハンドシェイクが unsupported-header エラーなしで成功し、ws 接続が引き続き機能すれば完了です。

索引モデルが issue の本文から書いたものです。

説明

Hello there!
I'm using this plugin for my project, and then I get errors when using 'ws' and 'wss'.
When I use ws , the socket is stable and working. But when I change it to wss , socket gives response error like this

image

Error : The WebSocket request or response contains an unsupported header.
Close : Abnormal

is there something wrong with the socket ? or something wrong with my wss server ?
i dont know how to fix this, because i cant get more log for this error.

Thank you !

[edit]
Im using Unity 2020.3.2f1 free
And im already check another plugin, and its work when add this on another plugin code

ws.SslConfiguration.EnabledSslProtocols = SslProtocolsExtensions.Tls12

But how to place this code to this plugin ?

主要言語
C#
スター
1.7k
フォーク
206
PR マージ指標
30日以内にマージされた PR はありません

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

endel/NativeWebSocket のほかの issue

endel/NativeWebSocket の issue をすべて見る

似ている issue

C# の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。