Discourse throwing 500

I am trying to create topics in discourse in bunch as I have to create somewhere around 150000 topics. But when I am hitting the discourse server frequently :

  1. Its giving 429 error
  2. After some time it starts giving 500 error and displays this error :

How can I resolve this?

Using an importer script is likely a better way to do that than the API (unless, perhaps, adding posts will be an ongoing need for the community).

It’s much more useful to paste the text of the errors than a picture.


As said by Jay you are hitting both API and machine limits here.

You should either:

  • throttle your API requests
  • directly hit the app