matrix-org / matrix-org/matrix-python-sdk
MatrixRequestError.content should be parsed
Open
Api layer
bug
enhancement
- Dominant language
- Python
- Stars
- 266
- Forks
- 118
- PR merge metrics
- No merged PRs in 30d
Description
Currently the ``content`` is left as a JSON string which means the end application has to parse it, when really it could be done at the api level. Alternatively the ``errcode`` and ``error`` keys could be part of the exception object.
Contributor guide
Research direction
Start by locating MatrixRequestError and the code that constructs it, then inspect how response content, errcode, and error are currently exposed. The issue presents two alternatives, so completion requires deciding whether content should be parsed or the exception should expose errcode and error, with tests confirming the chosen behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- api
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100