# Model Training Enpoint return .tar file instead of file name

**URL:** <https://forum.rasa.com/t/model-training-enpoint-return-tar-file-instead-of-file-name/51572>\
**Category:** Rasa Open Source\
**Created:** [February 25, 2022, 8:40am UTC](https://forum.rasa.com/t/model-training-enpoint-return-tar-file-instead-of-file-name/51572 "2022-02-25T08:40:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![RUI-LONG](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/rui-long/32/19368_2.png) [@RUI-LONG](https://forum.rasa.com/u/RUI-LONG)\
**Post date:** [February 25, 2022, 8:40am UTC](https://forum.rasa.com/t/model-training-enpoint-return-tar-file-instead-of-file-name/51572/1 "2022-02-25T08:40:18Z")

</div>

Hi, I have read the doc # Rasa - Server Endpoints (1.0.0),   
I’m tring to use the Model / Train a Rasa model endpoints,  
But I found that the response of model training is a zipped file (.tar.gz),   
instead of model filename (as document said).

In short, Model is successfully trained, but response is not a file name.

I tried to use callback server to retrieve request, the request header content-type is’application/x-tar’ instead of “application/octet-stream”.

The attachment is postman collection.

Ref: [Rasa & Rasa Pro Documentation](https://rasa.com/docs/rasa/pages/http-api/)

- OS: Win10
- Rasa: 2.8 Python: 3.7

[Chatbot.postman\_collection.json](https://forum.rasa.com/uploads/short-url/w1rV7Iyf67W1vvGqbzTQiK7GTPN.json) (7.1 KB)

---

<div class="post-metadata">

**Author:** ![nik202](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/nik202/32/16098_2.png) [@nik202](https://forum.rasa.com/u/nik202)\
**Post date:** [February 25, 2022, 1:58pm UTC](https://forum.rasa.com/t/model-training-enpoint-return-tar-file-instead-of-file-name/51572/2 "2022-02-25T13:58:46Z")

</div>

Helo @RUI-LONG are you able to train the rasa model using API, can you share the code, please? and can you confirm the rasa open source version? It 2. x right? rasa --version?

---

<div class="post-metadata">

**Author:** ![RUI-LONG](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/rui-long/32/19368_2.png) [@RUI-LONG](https://forum.rasa.com/u/RUI-LONG)\
**Post date:** [February 26, 2022, 1:10am UTC](https://forum.rasa.com/t/model-training-enpoint-return-tar-file-instead-of-file-name/51572/3 "2022-02-26T01:10:24Z")

</div>

@nik202 Thaks for your reply !

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/3X/c/a/caf06ad4cb73f9cf7e02519615d3f8d6d4a38809.png)

Here is what I have done: First I clone the repo below [https://github.com/RUI-LONG/rasa-en](https://github.com/RUI-LONG/rasa-en)

Then I run “rasa run actions” & “rasa run --enable-api --cors “\*” --debug” in two different terminals.   
And I use the model training endpoint (Postman Link is provided above),   
got the .tar file response.

Thanks for your reply again!
