Improve replication document error when user_ctx or auth headers are not parsed correctly
Open
enhancement
- Dominant language
- Erlang
- Stars
- 7k
- Forks
- 1.1k
- Avg merge
- 1d 16h
- Merged PRs (30d)
- 9
Description
Adding something like
```
"user_ctx": null
```
to the replication document results in the state `failed` which is correct but the error reason is: `"{error,{case_clause,null}}"` which is not the best.
Same goes for using a `null` value for a header in a source/target endpoint object.
Contributor guide
Research direction
Start by reproducing replication with a null user_ctx and with a null header in a source or target endpoint object. Trace the replication document and endpoint error handling to find where the case_clause error is produced; done means these inputs still fail but report a clear, useful error reason.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- erlang
- Domain
- databases
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 43/100