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

Export stories button doesn't work in Rasa X #8038

Closed
akelad opened this issue Feb 24, 2021 · 6 comments
Closed

Export stories button doesn't work in Rasa X #8038

akelad opened this issue Feb 24, 2021 · 6 comments
Labels
area:rasa-x/backend 🎩 All issues focused on the Rasa X backend type:bug 🐛 Inconsistencies or issues which will cause an issue or problem for users or implementors.

Comments

@akelad
Copy link
Contributor

akelad commented Feb 24, 2021

Posting this in the rasa repo since a forum member reported this here. I was able to reproduce this

Rasa version: 2.3.1

Rasa X version (if used & relevant): 0.36.0

Issue:
Clicking the "export stories" button on the stories screen inside Rasa X results in an error and doesn't download the stories.

Error (including full traceback):

rasa-x_1           | [2021-02-24 10:17:56 +0000] [32] [ERROR] Exception occurred while handling uri: 'http://35.190.208.243/api/stories'
rasa-x_1           | Traceback (most recent call last):
rasa-x_1           |   File "/usr/local/lib/python3.8/dist-packages/sanic/app.py", line 973, in handle_request
rasa-x_1           |     response = await response
rasa-x_1           |   File "/usr/local/lib/python3.8/dist-packages/rasax/community/api/decorators.py", line 216, in decorated_function
rasa-x_1           |     return await await_and_return_response(args, kwargs, request)
rasa-x_1           |   File "/usr/local/lib/python3.8/dist-packages/rasax/community/api/decorators.py", line 146, in await_and_return_response
rasa-x_1           |     response = await response
rasa-x_1           |   File "/usr/local/lib/python3.8/dist-packages/rasax/community/api/blueprints/core/stories.py", line 124, in get_stories
rasa-x_1           |     yaml_content = StoryService.from_request(request).get_stories_as_string(
rasa-x_1           |   File "/usr/local/lib/python3.8/dist-packages/rasax/community/services/story_service.py", line 287, in get_stories_as_string
rasa-x_1           |     return self._get_stories_as_yaml_string(project_id, stories)
rasa-x_1           |   File "/usr/local/lib/python3.8/dist-packages/rasax/community/services/story_service.py", line 252, in _get_stories_as_yaml_string
rasa-x_1           |     is_test_story = any([story["is_test"] for story in stories])
rasa-x_1           |   File "/usr/local/lib/python3.8/dist-packages/rasax/community/services/story_service.py", line 252, in <listcomp>
rasa-x_1           |     is_test_story = any([story["is_test"] for story in stories])
rasa-x_1           | TypeError: list indices must be integers or slices, not str
rasa-x_1           | [2021-02-24 10:17:56 +0000] - (sanic.access)[INFO][172.18.0.11:36500]: GET http://35.190.208.243/api/stories  500 214
@akelad akelad added type:bug 🐛 Inconsistencies or issues which will cause an issue or problem for users or implementors. area:rasa-x/backend 🎩 All issues focused on the Rasa X backend labels Feb 24, 2021
@mjaycub
Copy link
Contributor

mjaycub commented Feb 25, 2021

Tracking in Rasa X repo as https://github.com/RasaHQ/rasa-x/issues/4498

@mjaycub mjaycub closed this as completed Feb 25, 2021
@randywreed
Copy link

Link is bad. Please repost.

@akelad
Copy link
Contributor Author

akelad commented Feb 26, 2021

@mjaycub can you leave it in here pls? Reason I submitted here is so that the community member that reported it can keep track of it

@mjaycub mjaycub reopened this Feb 26, 2021
@mjaycub
Copy link
Contributor

mjaycub commented Feb 26, 2021

Oops sure, re-opened. We're tracking this issue in our private Rasa X repository. Will update and close this issue when it has been fixed.

@kaplan441
Copy link

Same issue.
Rasa version: 2.3.1
Rasa X version : 0.37.0

@mprazz
Copy link
Contributor

mprazz commented Jul 12, 2021

Already fixed -- closing this issue :)

@mprazz mprazz closed this as completed Jul 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:rasa-x/backend 🎩 All issues focused on the Rasa X backend type:bug 🐛 Inconsistencies or issues which will cause an issue or problem for users or implementors.
Projects
None yet
Development

No branches or pull requests

5 participants