Skip to content
This repository was archived by the owner on Jan 5, 2026. It is now read-only.

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

Merged
Tony Anziano (tonyanziano) merged 4 commits into
mainfrom
toanzian/restify-handler-fix
Nov 11, 2021
Merged

Tony Anziano (tonyanziano) merged 4 commits into
mainfrom
toanzian/restify-handler-fix

Conversation

@tonyanziano

Copy link
Copy Markdown
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.

@coveralls

Coveralls (coveralls) commented Nov 11, 2021 •

Copy link
Copy Markdown

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 subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants