playframework / playframework/play1

failed: Error during WebSocket handshake: Unexpected response code: 426

Open
#1,184 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
1.6k
Forks
671
Avg merge
12d 15h
Merged PRs (30d)
1

Description

When I run the example chat and select a websocket option, there console an error:

WebSocket connection to 'ws://localhost:9000/websocket/room/socket?user=yy' failed: Error during WebSocket handshake: Unexpected response code: 426

my Play version is 1.2.4, can you help me to solve this problem? Thanks

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the failure with the example chat in Play 1.2.4 and the WebSocket URL shown in the report. Inspect the example's WebSocket entry point and the server response to the handshake, then verify the selected WebSocket option connects without a 426 response.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
networking
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.