response.json() failing only within useQuery - receiving HTML instead of JSON - TanStack