Another thing that can cause this on an intermittent basis is if you are idle for a long time. WeBWorK will time out your login but the call back for adding problems isn't (yet) smart enough to tell you what happened so it just fails.
This is one of 3 known common causes of this behavior. Glad it's working for you. Thanks for reporting back.