I was playing in hard mode and came across an invisible spider. I caught it and nametagged it to prevent it from despawning. After a while I checked on where I had left the spider and it had lost the invisibility effect. I looked at the wiki and it said the effect had "endless length". While other less reliable sources either said endless or max duration effect length. I don't think it was intended for the spider to loose its spawned buff so I marked it down as a bug.
Never mind, not a bug with Minecraft. One of my mods accidentally used the "clear all effects" command and it removed the spider's effect. Apparently you can't delete a bug report so I just wanted to clarify, thanks.