learningequality / learningequality/studio
Unexpected 400 error response from /api/sync
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 191
- Forks
- 307
- Avg merge
- 5d 6h
- Merged PRs (30d)
- 10
Description
This is the response in the 400 error details:
{"errors":[{"type":4,"key":"24f593744a4c4c7c9e3d21b43df3dff0","table":"contentnode","rev":79,"target":"288b9bc02d94455aaf639cd1dd30eece","position":"last-child","errors":["[ErrorDetail(string='Specified node does not exist', code='invalid')]"]}]}
I think this might have happened when I tried creating and then deleting a topic, and then emptying the trash. (Looks like the actual error is a move due to the position value being present?) I received no notifications in the UI and just happened to notice this when checking the Network tab.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the /api/sync entry point and reproduce the reported sequence of creating and deleting a topic, then emptying the trash. Trace the 400 response containing “Specified node does not exist”; done means this scenario no longer produces an unexpected sync error and its failure behavior is covered appropriately.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- api, backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100