question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

RASA-X API - replace stories

See original GitHub issue

Rasa 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:closed
  • Created 4 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
akeladcommented, Aug 13, 2019

@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.

0reactions
rgstephenscommented, Jul 22, 2019

@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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found