Failed to post a topic

I have to ask it, but does your code work with a short text? Did you check that you actually pass non-empty content in the API?