TRANSPORT_HANDSHAKE_ERROR

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

メンテナーはふだん 2 日以内に返信

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

評価

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

調査の方向性

指定されたエントリポイントは Engine の connection_error listener です。まず、このイベント周辺のトランスポート・ハンドシェイクの経路と AWS ロードバランサーの設定を追跡してください。レポートには再現手順、影響を受けるユーザーの詳細、ファイル、テストが記載されていないため、最初に再現可能なケースを確立してください。完了条件は、ハンドシェイクが失敗する条件を特定し、接続が成功することを検証することです。

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

説明

needs author input

Describe the bug
I am using socketio with eiows and fastify
We are running socketio on AWS EC2 instance behing loadbalancer.
Few of the users(Approx 1%) are not able to connect to socketio server and getting TRANSPORT_HANDSHAKE_ERROR.

I have printed the logs like below:

    fastify.io.engine.on("connection_error", (err) => {
      console.error("Socket connection error: code: " + err.code); // the error code, for example 1
      console.error("Socket connection error: message: " + err.message); // the error message, for example "Session ID unknown"
      console.error("Socket connection error: context: " + JSON.stringify(err.context)); // some additional error context
    });

Below are the logs:

Socket connection error: code: 3
Socket connection error: message: Bad request
Socket connection error: context: {"name":"TRANSPORT_HANDSHAKE_ERROR"}

To Reproduce
I am not sure about the reproduction condition. It is happening for few users and we dont have the user details to connect to them,

Socket.IO server version: 4.8.1

Expected behavior
Socket connection should be success

主要言語
TypeScript
スター
63.2k
フォーク
10.2k
平均マージ
6日 4時間
マージ済み PR(30日)
6

環境構築

はじめの一歩

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

socketio/socket.io のほかの issue

socketio/socket.io の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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