crossbario / crossbario/autobahn-python

Error Message for rawsocket/websocket could be improved.

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

Nobody has claimed this yet.

Dominant language
Python
Stars
2.5k
Forks
768
PR merge metrics
No merged PRs in 30d

Description

hi,
I have been looking at autobahn-python client code, it looks like we do not have correct error message for scenario's where we are trying to use a secured raw socket, rss:: and connection fails for any reason.

Currently we have

'ssl argument value passed to %s conflicts with the "ws:" '
'prefix of the url argument. Did you mean to use "wss:"?' %
 self.__class__.__name__)

which can certainly be improved upon.

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 locating the quoted SSL-versus-"ws:" error message in the Autobahn-Python client code and inspect how secured raw socket failures are handled. Reproduce the relevant connection failure, decide on clearer wording for the error, and verify the resulting client error behavior.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.