Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rasa HTTP Training Api on 200 returns zipped model #50

Open
syedMSohaib opened this issue Jul 18, 2020 · 0 comments
Open

Rasa HTTP Training Api on 200 returns zipped model #50

syedMSohaib opened this issue Jul 18, 2020 · 0 comments

Comments

@syedMSohaib
Copy link

I look through your code in RasaTalk/server/mongo/controllers/training.js
In the train() function you are using wrong url so instead of
${process.env.RASASERVER}/train?project
it should be
${process.env.RASASERVER}/model/train?project

Furthermore if we look though documentation of Api
https://rasa.com/docs/rasa/1.2.9/api/http-api/#tag/Model
Request:
it need config key required but we are not adding any in the code
it need nlu in the mark down format but you are just sending model.data which is plain json
it also expects stories in markdown and domain in text format
Response for 200:
It returns zipped file but in your code of success of api call you are spiting the data but the response is zip that throws error

Either am i totally wrong here or are we using an old api of rasa ? Please let me know

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant