RASA-X API - replace stories
See original GitHub issueRasa version: 1.1.4
Rasa X version (if used & relevant): 0.19.5
Python version: 3.6.9
Operating system (windows, osx, …): official docker containers
Issue:
Replacing Stories, using PUT /api/stories
doesnt replace the stories and return an Error: Invalid response type
Error (including full traceback):
rasa-x_1 | [2019-07-16 05:09:14 +0000] [22] [ERROR] Invalid response object for url b'/api/stories', Expected Type: HTTPResponse, Actual Type: <class 'NoneType'>
rasa-x_1 | [2019-07-16 05:09:14 +0000] [22] [ERROR] Exception occurred while handling uri: 'http://----/api/stories'
rasa-x_1 | Traceback (most recent call last):
rasa-x_1 | File "/usr/local/lib/python3.6/site-packages/sanic/server.py", line 417, in write_response
rasa-x_1 | response.output(
rasa-x_1 | AttributeError: 'NoneType' object has no attribute 'output'
Command or request that led to error:
PUT /api/stories using Postman 2
body:
[
{
"story": "## anything else?\n - utter_anything_else\n* enter_data\n - utter_not_sure\n - utter_possibilities",
"id": "34",
"annotation": {
"user": "me",
"time": 0,
"name": "anything else?"
},
}
]
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (7 by maintainers)
Top Results From Across the Web
RASA-X API - PUT stories does add instead of replace #4168
Rasa version: 1.1.4 Rasa X version: 0.20.0 Issue: With the stories.md file ... RASA-X API - PUT stories does add instead of replace...
Read more >Stories - Rasa
Stories are a type of training data used to train your assistant's dialogue management model. Stories can be used to train models that...
Read more >Reseting Stories using Rasa-X Server deployment with Docker
I have setup Rasa-X using the deploy to server with docker ... @stephens I try to use the API to “replace” the stories...
Read more >Rasa & Rasa Pro Documentation
Replace a trackers events. Replaces all events of a tracker with the passed list of events. This endpoint should not be used to...
Read more >Rasa HTTP API
Read about Rasa's HTTP API that has endpoints for conversations, training models, and configuring your bot.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@rgstephens sorry for getting back to you so late, i’ve been away - we’re gonna be reworking the API page in general, so will incorporate that. Thanks for letting us know.
@akelad It’s not just a matter of adding examples, there’s a bug in the documentation for the API that needs to be fixed. The API docs state that
POST
for stories (and other calls) takes a string containing markdown which is incorrect.