If you apply the blindness effect to a random entity that is not a player, the effect is not applied.
Steps to Reproduce:
summon something
use "/effect give @e[type=!player] blindness 1000000 0 true"
use /gamemode spectator or use /spectate to spectate entities
the effet doesn't apply.
Same as MC-56833