Just ran into something while querying for teams by user and game. If one of the teams has not joined a league yet the whole url call returns an error saying that the team_key is invalid. I suspect because the league id in this case is 'auto' instead of an actual number it's breaking the whole process.