Can't sign in to Mac - "There was an error connecting to the Apple Id Server"
I have not been able to sign into my Apple ID on my Macbook for the longest. Everytime I put in my password, which I know is correct it always rejects it and says that "there was an error connecting to the Apple ID server." I can't use iTunes or even connect to the App Store and try to update it without properly connecting to the server. I've tried a lot of the fixes I see online and they don't work. My date and time are correct. My password is correct. The Apple servers are working fine. My wifi works. It happened right after I last updated my computer to a new software. Any help would be greatly appreciated!!
MacBook Air 13", macOS 10.14