paschmann / rasa-ui

Rasa UI is a frontend for the Rasa Framework
MIT License
953 stars 327 forks source link

Error loading model #250

Closed syedMSohaib closed 4 years ago

syedMSohaib commented 4 years ago

When ever i try to load model after training the model i get this error. please help resolving this Below is the response of api/v2/rasa/model Error loading model:

{
  "data": {
    "version": "1.10.7",
    "status": "failure",
    "message": "Agent with name 'null/nlu-20200719-224214.tar.gz' could not be loaded.",
    "reason": "BadRequest",
    "details": {
      "parameter": "model",
      "in": "query"
    },
    "help": null,
    "code": 400
  },
  "status": 200,
  "config": {
    "method": "PUT",
    "transformRequest": [
      null
    ],
    "transformResponse": [
      null
    ],
    "jsonpCallbackParam": "callback",
    "url": "/api/v2/rasa/model",
    "data": {
      "model_file": "null/nlu-20200719-224214.tar.gz"
    },
    "headers": {
      "Accept": "application/json, text/plain, */*",
      "Authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6ImFkbWluIiwibmFtZSI6IlBvcnRhbCBBZG1pbmlzdHJhdG9yIiwiaWF0IjoxNTk1MTgwODEzfQ.N0nhyzWqRK_9Gxp9AM9-_l_03cW2nYj8ozzeaDqeQo4",
      "Content-Type": "application/json;charset=utf-8"
    }
  },
  "statusText": "OK",
  "xhrStatus": "complete"
}

I am new to rasa, so any help is appreciated please ! Thanks.

syedMSohaib commented 4 years ago

silly mistake i was using rasa run --enable-api --log-file out.log --endpoints my_endpoints.yml instead of rasa run -m models --enable-api --log-file out.log --endpoints my_endpoints.yml