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
tonyanziano merged 4 commits intomainfrom
toanzian/restify-handler-fix
Nov 11, 2021
Merged

Moved next() in handler to fix early HTTP response termination.#2320
tonyanziano merged 4 commits intomainfrom
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.

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

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.

@tonyanziano tonyanziano merged commit 0a75699 into main Nov 11, 2021
@tonyanziano tonyanziano deleted the toanzian/restify-handler-fix branch November 11, 2021 20:37
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