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.

Messages list in CollectingOutputChannel always empty

See original GitHub issue

Rasa version: 1.0.6

Rasa X version (if used & relevant): 0.19.0

Python version: 3.7.3

Operating system : Windows 10 1709 Build 16299.1146

Issue: Messages list in CollectingOutputChannel always empty. I have attempted to modify the Google Assistant connector example from this link to work with Sanic in Rasa 1.0 (the Sanic server works). However, the above-mentioned output channel never returns any reply from Rasa. Please let me know what is the issue.

Error (including full traceback):

Message handling no reply for user message 'Hello there'.
list index out of range

Command or request that led to error:

@google_webhook.route("/webhook", methods=["POST"])
async def receive(request):

    payload = request.json
    sender_id = payload["user"]['userId']
    intent = payload['inputs'][0]['intent'] 			
    text = payload['inputs'][0]['rawInputs'][0]['query']

    try:
        if intent == "actions.intent.MAIN":
            message = "<speak>Hello! <break time=\"1\"/> Welcome to the Rasa-powered Google Assistant skill. You can start by saying hi."
        else:
            out = CollectingOutputChannel()
            new_message = UserMessage(text,out,sender_id,input_channel=self.name())
            #NO EFFECT
            await on_new_message(new_message)
            responses = [m["text"] for m in out.messages]
            message = responses[0]
    except LookupError as e: 
            logger.error("Message handling no reply for user message '{}'.".format(text))
            logger.error(e)
            message = "RASA_NO_REPLY"

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:15 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
akeladcommented, Jun 5, 2019

Thanks for raising this issue, @tmbo will get back to you about it soon.

0reactions
DiegoProteccommented, Jul 2, 2019

Not yet… but on this issue, Juste promised that will update the tutorial.

Read more comments on GitHub >

github_iconTop Results From Across the Web

CollectingOutputChannel not getting any outputs from bot
Hi All, I am trying to use custom connector for my custom ui. Input from user is getting but in collecting output channel...
Read more >
Rasa X - Google Assistant connector doesn't receive any ...
I expect the output to be the text selected by the Rasa agent as a reply "This is the reply", but I get...
Read more >
How to use the rasa.core.events.UserUttered function in rasa
Not all events are always listed in the story dsl. ... unrelated message would influence featurization tracker.update(UserUttered.empty()) action = self.
Read more >
Message history | PubNub Docs
Messages are always returned in a chronological order—from oldest to newest—within the timetoken range you request.
Read more >
How can we have some channels always show (even when ...
We'd like to return a channel list filtered on customTypes. Additionally, 1 customType we want to include empty messages and the others we ......
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