Error while calling the Train API

I have trained a model in the default project using the python -m rasa_nlu.train
–config config.yml
–data nlu_data/
–path projects
command. However, i also want to try adding another model using the train HTTP API call. I tried to run it with curl ‘’ |
curl --request POST --header ‘content-type: application/x-yml’ -d@- --url ‘localhost:5000/train?project=test_model’
command that i found at

I get the following error and I am not sure how to proceed with this.

{ "error": "while parsing a block mapping\n in \"\", line 1, column 1:\n language: \"en\"pipeline: \"spacy_s ... \n ^\nexpected , but found ''\n in \"\", line 1, column 15:\n language: \"en\"pipeline: \"spacy_sklearn\"# data ... \n ^"

Please post this as an issue on the rasa_nlu repo with some more information like the rasa_nlu version you’re using etc

Hi Akela. I was able to resolve the issue (kind of). I used a work around with Postman. But I would still like to know why the curl command was throwing up this error. I’ll surely post it in the nlu repo with more info. Thanks!