If you do anything in the game in another tab, it will generate that error. If you get the error, it's usually easiest just to refresh the page (or copy/paste the url so it doesn't try to redo an action) and then try whatever you were trying to do again.