Sometimes, i get attacked by mobs, but they are completely invisible. I have to disconnect and reconnect to the server to correct this. Is the problem solely on my end?
This happens a lot to me too. I am pretty sure it's the server and it's a glitch. Screenshots and/or video evidence helps a lot too. Just saying...
I use the most current version of minecraft. And this happens often in minecraft. the first few time's I raged, and thought I was being attacked by someone invisible although there were no combat tag's which led me to conclude invisible mobs. I apologize for a lack of any visual evidence at this time. I use version 1.12.1/vanilla and java 1.8.0_25
I think the easiest way to fix this bug is to use Minecraft 1.8.9 or just below 1.9 Minecraft because basically in the lower versions of Minecraft these bugs don't happen.