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

Moved next() in handler to fix early HTTP response termination. #2320

Merged
merged 4 commits into from
Nov 11, 2021

Conversation

tonyanziano
Copy link
Contributor

There was a misplaced next() call in the replyToActivity.ts handler that is responsible for posting messages from the bot back to Web Chat. This next() call was terminating the response earlier than the call to res.send(HttpStatus.OK, { id: activity.id }); on line 62 which was causing the newer version of NodeJS to throw when it was not before on the older version.

cwhitten
cwhitten previously approved these changes Nov 11, 2021
a-b-r-o-w-n
a-b-r-o-w-n previously approved these changes Nov 11, 2021
a-b-r-o-w-n
a-b-r-o-w-n previously approved these changes Nov 11, 2021
@coveralls
Copy link

coveralls commented Nov 11, 2021

Coverage Status

Coverage decreased (-0.002%) to 67.839% when pulling 1e00d35 on toanzian/restify-handler-fix into 3226464 on main.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants