Unexpected end of JSON input
This message shows up in 2 different situations. Pick the one that matches yours:
- 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 →
- Building a people picker in SPFx — the endpoints that actually workSP Search People source + ensureuser; why the obvious endpoints failCause and fix →