I’ve seen tutorials saying it’s best not to build an xp farm over a river because mobs don’t spawn on river biomes (?), but does mine not work because of that or because it’s not high enough?

Where would be an ideal place to build one?
Does my xp farm not work because it’s on water?