Skip to content
This repository was archived by the owner on Nov 3, 2023. It is now read-only.

Messenger - qa_data_collection task #1333

Closed
micolspitale93 opened this issue Jan 8, 2019 · 2 comments · May be fixed by javakian/ParlAI#5, terrorizer1980/ParlAI#5, rehabstudio/ParlAI#4, rehabstudio/ParlAI#8 or javakian/ParlAI#49
Assignees

Comments

@micolspitale93
Copy link

Running the messenger qa_data_collection task, it gives me te following error:
Exception in user code:
Traceback (most recent call last):
File "/home/micol/PycharmProjects/parlai_project/ParlAI/parlai/messenger/core/messenger_manager.py", line 552, in _task_function
task_functions[world_type](self, opt, agents, conversation_id)
File "run.py", line 45, in run_conversation
task = task_class(task_opt)
File "/home/micol/PycharmProjects/parlai_project/ParlAI/parlai/tasks/squad/agents.py", line 114, in init
build(opt)
File "/home/micol/PycharmProjects/parlai_project/ParlAI/parlai/tasks/squad/build.py", line 35, in build
if 'fulldoc' in opt['task']:
KeyError: 'task'
"Facebook response from message send: {'recipient_id': '2172740222785536', 'message_id': 'm_rDniDdXXKp9KY2DDR7nYxf46FEm_jG446gMYoyCBkXQ1qs8d7VUug8eG31SNJbRdWO5T8BAyL5R4_1-p3tHWVQ'}"
Message data received: {'object': 'page', 'entry': [{'id': '336760520259323', 'time': 1546939725227, 'messaging': [{'sender': {'id': '336760520259323'}, 'recipient': {'id': '2172740222785536'}, 'timestamp': 1546939724784, 'message': {'is_echo': True, 'app_id': 322301978494112, 'mid': 'rDniDdXXKp9KY2DDR7nYxf46FEm_jG446gMYoyCBkXQ1qs8d7VUug8eG31SNJbRdWO5T8BAyL5R4_1-p3tHWVQ', 'seq': 32111, 'text': 'Sorry, this world closed. Returning to overworld.'}}]}]}
Message data received: {'object': 'page', 'entry': [{'id': '336760520259323', 'time': 1546939725478, 'messaging': [{'sender': {'id': '2172740222785536'}, 'recipient': {'id': '336760520259323'}, 'timestamp': 1546939725466, 'delivery': {'mids': ['rDniDdXXKp9KY2DDR7nYxf46FEm_jG446gMYoyCBkXQ1qs8d7VUug8eG31SNJbRdWO5T8BAyL5R4_1-p3tHWVQ'], 'watermark': 1546939724784, 'seq': 0}}]}]}

What is the possible solution?

Thank you

@stephenroller
Copy link
Contributor

Will you please share the command you ran to create this error?

It looks like 'task' isn't being set in the options anywhere. We really just need to figure out where's the right place to set it.

@micolspitale93
Copy link
Author

micolspitale93 commented Jan 8, 2019 via email

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.