I’ve got some editorial content I’m migrating to Discourse via the API and have stood up a new, development instance of Discourse to test the migration against. I’m able to create three topics with replies but then on trying to create the fourth the request hangs.
I thought this was some spam/rate-limiting configuration so have gone through and disabled everything that seems associated with something that would intervene in a topic creation but the issue persists.
Is there any guidance for this scenario?
As I’m working against a brand new Discourse instance I have no members, so my migration program creates user accounts as needed for the topic/reply authors. In production the accounts will exist already.
My content is in a custom database. Thankfully I’m a developer so it’s easy enough to write a C# program to query the DB and use the API to create the topics/replies. Well, it was easy until some blocking functionality in Discourse kicked in :-/
Are you getting an error message returned from Discourse when the request hangs?
Depending on the error message you are getting, you might be able to solve the problem by adding the skip_validation parameter to your API request. It should be set to true. With that parameter set, a lot of the checks that Discourse does to see if a post meets the criteria defined in your site settings are bypassed.
The request just hangs as far as I can see, though there is some logging functionality on the package I’m using to interact with the API. I’ll give that a go first to try and sniff out any error message.
The package doesn’t have an option for skipping validation. I may have to modify it to add the param in.