Failed to execute 'json' on 'Response': Unexpected end of JSON input
What causes it and how to fix it:
- moveto succeeds and your code reports a failure — action endpoints return an empty bodyAction endpoints (moveto, removebyid) return an empty body, so response.json() throws after the operation happened and invites a retry; decide by status, parse only what you readCause and fix →