element-hq / element-hq/synapse

`register_new_user` gives unhelpful error if it gets a non-JSON response

Open
#9,350 0 comments 0 reactions 0 assignees View on GitHub
S-Minor T-Defect
Dominant language
Python
Stars
4.6k
Forks
600
Avg merge
5d 22h
Merged PRs (30d)
51

Description

This issue has been migrated from [#9350](https://github.com/matrix-org/synapse/issues/9350).

---

This can happen if you point it at something that isn't Synapse (e.g. a web server), which is easily done. Instead of returning a stack trace and a `JSONDecodeError`, we should give a more helpful/friendly error message. Especially since this is something that happens during initial set up of Synapse.

c.f. #9343 and #3672

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.