"An unknown error occurred" when signing into iMessage account with Apple ID on macOS The Messages app wasn't longer able to send messages saying Not Delivered, so I signed out. When signing back in I see this:



Note that Apple does see the login: I get an email saying so



The information in that email is correct, so then why the error message?  Any ideas on this?
I used to have the same error on my device once.

In my case it helped resetting the NVRAM, which is one of the recommendations in Apple's documentation.


  Reset NVRAM or PRAM on your Mac
  
  ⌥ + ⌘ + P + R
  
  Shut down your Mac, then turn it on and immediately press and hold these four keys together: Option, Command, P, and R. You can release the keys after about 20 seconds, during which your Mac might appear to restart.
  
  https://support.apple.com/en-us/HT204063