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.

ActivityMiddleware loops through activities in reverse

See original GitHub issue

Screenshots

image

Version

4.10.1

<meta name="botframework-directlinespeech:version" content="4.10.1">
<meta name="botframework-webchat:bundle:variant" content="full">
<meta name="botframework-webchat:bundle:version" content="4.10.1">
<meta name="botframework-webchat:core:version" content="4.10.1">
<meta name="botframework-webchat:ui:version" content="4.10.1">

Describe the bug

Activities pass through the middleware in the opposite order that they arrived in.

Steps to reproduce

  1. Send an activity to the frontend.
  2. 1st Activity passes through activity middleware.
  3. Send another activity to the frontend.
  4. 2nd Activity passes through activity middleware.
  5. 1st Activity passes through activity middleware.

Expected behavior

  1. Send an activity to the frontend.
  2. 1st Activity passes through activity middleware.
  3. Send another activity to the frontend.
  4. 2nd Activity passes through activity middleware.

-or-

  1. Send an activity to the frontend.
  2. 1st Activity passes through activity middleware.
  3. Send another activity to the frontend.
  4. 1st Activity passes through activity middleware.
  5. 2nd Activity passes through activity middleware.

Preferably the latter.

[Bug]

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
stevkancommented, Oct 23, 2020

@felixvanleeuwen, can you post the Web Chat code you are using (hiding any tokens / secrets being passed in)?

I have a slight suspicion this is by design, but am confirming.

0reactions
felixvanleeuwencommented, Oct 27, 2020

Thanks for the info

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to use activitymiddleware if activities of type event are ...
In the client I am using middleware to catch this event and hide or show the sendBox. In the console, i see that...
Read more >
botframework-webchat 4.3.1-master-bb7e059 | MyGet
01.b.getting-started-es5-bundle, Introduces full-featured Web Chat embed with backwards compatibility for ES5 browsers using Web Chat's ES5 ponyfill.
Read more >
Chapter 9 Project Scheduling Flashcards - Quizlet
A) Identify all loops through activities. B) Identify the party responsible for each activity. C) Calculate the float for each activity. D) Understand...
Read more >
Assistance for Application and Technology Deployments ...
activities and work with the Department to prioritize resources as required. ... The overall approach forms a closed loop feedback system.
Read more >
Computing surfaces - a platform for scalable interactive displays
The activity of individual tiles is tightly coupled with the activity of ... of addressing cycles required to achieve G gray levels. ......
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