We are finding this problem right now, and I think I can contribute to this discussion. What happened in our case is:
- An article is published in WordPress and a related topic is automatically created in Discourse.
- However, for whatever reason (user post limit?), the new topic goes automatically to moderation.
- The moderated topic is not public, The WP-Discourse plugin cannot “see it” and throws a first error message:
Reason for failure: A bad response was returned from Discourse. Check that: - your Discourse forum is online.
If the moderator approves the post because everything is correct there, then…
When updating the article in WordPress in order to have a Discourse topic linked, the WP-Discourse plugin finds an article with an identical title / content, and this is what cause a second error message:
Reason for failure:
A 422 response code was returned from Discourse.
The solution is to delete the first Discourse topic and update the page again.