crossbario / crossbario/autobahn-python

INVOCATION endpoint error handler fails if exception has an empty args attribute

Open
#484 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

protocol.py l.805 throws an UNHANDLED IndexError in that case.

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 at autobahn/wamp/protocol.py line 805, where the INVOCATION endpoint error handler raises an IndexError when an exception has an empty args attribute. Reproduce that case and trace the handler's assumptions about exception arguments. Done means the empty-args case no longer produces an unhandled IndexError while still returning the appropriate endpoint error.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.