I'm probably dumb but how can I fix this?

I keep getting the error:
"
Disconnect: There was an error communicating with the server. Please reconnect..
"

My internet is fine, i was getting a consistent 40 ping in the server, but this keeps happening. It'd be cool if there was some simple fix to have it not happen again.
Either way thanks in advance for any help.