I am working on a page and the draft version is not getting published. I tried refreshing the page but it would just throw an error as attached.
Below error comes when I click on the Publish button. At the same time the above one pops up on bottom left corner.

This is sort of irritating.