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

Rasa interactive does not succeed in creating a new intent #9517

Closed
MaximeWeyl opened this issue Sep 2, 2021 · 6 comments
Closed

Rasa interactive does not succeed in creating a new intent #9517

MaximeWeyl opened this issue Sep 2, 2021 · 6 comments
Labels
area:rasa-oss 🎡 Anything related to the open source Rasa framework type:bug 🐛 Inconsistencies or issues which will cause an issue or problem for users or implementors.

Comments

@MaximeWeyl
Copy link

Rasa Open Source version

2.8.4

Rasa SDK version

2.8.2

Rasa X version

None

Python version

3.8

What operating system are you using?

Linux, Cloud (AWS / GCP / AZURE)

What happened?

I install rasa
I run rasa init
I run rasa interactive, and try to add a new intent interactively

The screencast is here : https://youtu.be/V3f5l6GpGyg
The project is here (with the error log and pip freeze requirements : https://github.com/MaximeWeyl/rasa-interactive-bug

Command / Request

rasa interactive

Relevant log output

? The bot wants to run 'action_listen', correct? Yes                                                                                                                                                 
? Your input -> i want you to create a new action and intent !!                                                                                                                                      
? Your NLU model classified 'i want you to create a new action and intent !!' with intent 'bot_challenge' and there are no entities, is this correct? No                                             
? What intent is it? <create_new_intent>                                                                                                                                                             
? Please type the intent name: request_new_action                                                                                                                                                    
? Please mark the entities using [value](type) notation i want you to create a new action and intent !!                                                                                              
2021-09-02 15:02:37 ERROR    rasa.server  - An unexpected error occurred. Error: 'request_new_action' is not in list
2021-09-02 15:02:37 ERROR    rasa.core.training.interactive  - An exception occurred while recording messages.
Traceback (most recent call last):
  File "/workspace/.local/lib/python3.8/site-packages/rasa/core/training/interactive.py", line 1519, in record_messages
    await _predict_till_next_listen(
  File "/workspace/.local/lib/python3.8/site-packages/rasa/core/training/interactive.py", line 972, in _predict_till_next_listen
    result = await request_prediction(endpoint, conversation_id)
  File "/workspace/.local/lib/python3.8/site-packages/rasa/core/training/interactive.py", line 172, in request_prediction
    return await endpoint.request(
  File "/workspace/.local/lib/python3.8/site-packages/rasa/utils/endpoints.py", line 172, in request
    raise ClientResponseError(
rasa.utils.endpoints.ClientResponseError: 500, Internal Server Error, body='b'{"version":"2.8.4","status":"failure","message":"An unexpected error occurred. Error: \'request_new_action\' is not in list","reason":"ConversationError","details":{},"help":null,"code":500}''
2021-09-02 15:02:37 ERROR    asyncio  - Task exception was never retrieved
future: <Task finished name='Task-27' coro=<_serve_application.<locals>.run_interactive_io() done, defined at /workspace/.local/lib/python3.8/site-packages/rasa/core/training/interactive.py:1609> exception=ClientResponseError('500, Internal Server Error, body=\'b\'{"version":"2.8.4","status":"failure","message":"An unexpected error occurred. Error: \\\'request_new_action\\\' is not in list","reason":"ConversationError","details":{},"help":null,"code":500}\'\'')>
Traceback (most recent call last):
  File "/workspace/.local/lib/python3.8/site-packages/rasa/core/training/interactive.py", line 1612, in run_interactive_io
    await record_messages(
  File "/workspace/.local/lib/python3.8/site-packages/rasa/core/training/interactive.py", line 1519, in record_messages
    await _predict_till_next_listen(
  File "/workspace/.local/lib/python3.8/site-packages/rasa/core/training/interactive.py", line 972, in _predict_till_next_listen
    result = await request_prediction(endpoint, conversation_id)
  File "/workspace/.local/lib/python3.8/site-packages/rasa/core/training/interactive.py", line 172, in request_prediction
    return await endpoint.request(
  File "/workspace/.local/lib/python3.8/site-packages/rasa/utils/endpoints.py", line 172, in request
    raise ClientResponseError(
rasa.utils.endpoints.ClientResponseError: 500, Internal Server Error, body='b'{"version":"2.8.4","status":"failure","message":"An unexpected error occurred. Error: \'request_new_action\' is not in list","reason":"ConversationError","details":{},"help":null,"code":500}''
@MaximeWeyl MaximeWeyl added area:rasa-oss 🎡 Anything related to the open source Rasa framework type:bug 🐛 Inconsistencies or issues which will cause an issue or problem for users or implementors. labels Sep 2, 2021
@AbiamRemacheGonzalez
Copy link

I have the exatly problem.
image
But I don't know how to fix it.

@julianfrank
Copy link

I'm also struck with this :(

rasa --version
Rasa Version : 2.8.6
Minimum Compatible Version: 2.8.0
Rasa SDK Version : 2.8.2
Rasa X Version : None
Python Version : 3.8.11
Operating System : Linux-5.11.0-7633-generic-x86_64-with-glibc2.17
Python Path : /home/jf/miniconda3/envs/try3/bin/python

rasa interactive
The configuration for pipeline and policies was chosen automatically. It was written into the config file at 'config.yml'.
The configuration for pipeline and policies was chosen automatically. It was written into the config file at 'config.yml'.
Nothing changed. You can use the old model stored at '/home/jf/code/github/julianfrank/rasatry/try3/prj1/models/20210918-194223.tar.gz'.
2021-09-18 19:48:27 INFO rasa.model - Loading model models/20210918-194223.tar.gz...
2021-09-18 19:48:42 WARNING rasa.shared.utils.common - The UnexpecTED Intent Policy is currently experimental and might change or be removed in the future 🔬 Please share your feedback on it in the forum (https://forum.rasa.com) to help us make this feature ready for production.
2021-09-18 19:48:48 INFO root - Rasa server is up and running.
Processed story blocks: 100%|███████████████████| 3/3 [00:00<00:00, 2321.57it/s, # trackers=1]
Processed rules: 100%|██████████████████████████| 2/2 [00:00<00:00, 2801.81it/s, # trackers=1]
Bot loaded. Visualisation at http://localhost:5006/visualization.html .
Type a message and press enter (press 'Ctrl-c' to exit).
? Your input -> hi
? Your NLU model classified 'hi' with intent 'greet' and there are no entities, is this correc
t? Yes

Chat History

Bot You

────────────────────────────────────────────
1 action_listen
────────────────────────────────────────────
2 hi
intent: greet 1.00

Current slots:
session_started_metadata: None


? The bot wants to run 'utter_greet', correct? Yes

Chat History

Bot You

────────────────────────────────────────────────
1 action_listen
────────────────────────────────────────────────
2 hi
intent: greet 1.00
────────────────────────────────────────────────
3 utter_greet 1.00
Hey! How are you?

Current slots:
session_started_metadata: None


? The bot wants to run 'action_listen', correct? Yes
? Your input -> what is your name
? Your NLU model classified 'what is your name' with intent 'affirm' and there are no entities
, is this correct? No
? What intent is it? <create_new_intent>
? Please type the intent name: name
? Please mark the entities using value notation what is your name
2021-09-18 19:50:25 ERROR rasa.server - An unexpected error occurred. Error: 'name' is not in list
2021-09-18 19:50:25 ERROR rasa.core.training.interactive - An exception occurred while recording messages.
Traceback (most recent call last):
File "/home/jf/miniconda3/envs/try3/lib/python3.8/site-packages/rasa/core/training/interactive.py", line 1519, in record_messages
await _predict_till_next_listen(
File "/home/jf/miniconda3/envs/try3/lib/python3.8/site-packages/rasa/core/training/interactive.py", line 972, in _predict_till_next_listen
result = await request_prediction(endpoint, conversation_id)
File "/home/jf/miniconda3/envs/try3/lib/python3.8/site-packages/rasa/core/training/interactive.py", line 172, in request_prediction
return await endpoint.request(
File "/home/jf/miniconda3/envs/try3/lib/python3.8/site-packages/rasa/utils/endpoints.py", line 172, in request
raise ClientResponseError(
rasa.utils.endpoints.ClientResponseError: 500, Internal Server Error, body='b'{"version":"2.8.6","status":"failure","message":"An unexpected error occurred. Error: 'name' is not in list","reason":"ConversationError","details":{},"help":null,"code":500}''
2021-09-18 19:50:25 ERROR asyncio - Task exception was never retrieved
future: <Task finished name='Task-27' coro=<_serve_application..run_interactive_io() done, defined at /home/jf/miniconda3/envs/try3/lib/python3.8/site-packages/rasa/core/training/interactive.py:1609> exception=ClientResponseError('500, Internal Server Error, body='b'{"version":"2.8.6","status":"failure","message":"An unexpected error occurred. Error: \'name\' is not in list","reason":"ConversationError","details":{},"help":null,"code":500}''')>
Traceback (most recent call last):
File "/home/jf/miniconda3/envs/try3/lib/python3.8/site-packages/rasa/core/training/interactive.py", line 1612, in run_interactive_io
await record_messages(
File "/home/jf/miniconda3/envs/try3/lib/python3.8/site-packages/rasa/core/training/interactive.py", line 1519, in record_messages
await _predict_till_next_listen(
File "/home/jf/miniconda3/envs/try3/lib/python3.8/site-packages/rasa/core/training/interactive.py", line 972, in _predict_till_next_listen
result = await request_prediction(endpoint, conversation_id)
File "/home/jf/miniconda3/envs/try3/lib/python3.8/site-packages/rasa/core/training/interactive.py", line 172, in request_prediction
return await endpoint.request(
File "/home/jf/miniconda3/envs/try3/lib/python3.8/site-packages/rasa/utils/endpoints.py", line 172, in request
raise ClientResponseError(
rasa.utils.endpoints.ClientResponseError: 500, Internal Server Error, body='b'{"version":"2.8.6","status":"failure","message":"An unexpected error occurred. Error: 'name' is not in list","reason":"ConversationError","details":{},"help":null,"code":500}''

@JEM-Mosig
Copy link
Contributor

Same problem reported by two other users on the forum. I can reproduce it with rasa init project on 2.8.x (b514d3f)

@JEM-Mosig
Copy link
Contributor

Same problem reported by another user on the forum.

@tayfun
Copy link
Contributor

tayfun commented Oct 26, 2021

This has now been fixed with the duplicate issue #9949 , fix is on 2.8.x branch and soon coming to main branch and new version releases.

A related bug is #9977 which I plan to look at soon.

@tayfun tayfun closed this as completed Oct 26, 2021
@Moobbot
Copy link

Moobbot commented Apr 28, 2022

image
2022-04-28 11:35:28 ERROR asyncio - Exception in callback _ProactorBasePipeTransport._call_connection_lost(None)
handle: <Handle _ProactorBasePipeTransport._call_connection_lost(None)>
Traceback (most recent call last):
File "D:\Chatbot\anaconda3\envs\rasa_nckh\lib\asyncio\events.py", line 81, in _run
self._context.run(self._callback, *self._args)
File "D:\Chatbot\anaconda3\envs\rasa_nckh\lib\asyncio\proactor_events.py", line 162, in _call_connection_lost
self._sock.shutdown(socket.SHUT_RDWR)
ConnectionResetError: [WinError 10054] An existing connection was forcibly closed by the remote host

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:rasa-oss 🎡 Anything related to the open source Rasa framework 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

6 participants