Skip to content

Add payload fail action custom handler#3539

Merged
hueniverse merged 6 commits intohapijs:masterfrom
jeff-kilbride:feature/payload_failAction_custom_handler
Jul 18, 2017
Merged

Add payload fail action custom handler#3539
hueniverse merged 6 commits intohapijs:masterfrom
jeff-kilbride:feature/payload_failAction_custom_handler

Conversation

@jeff-kilbride
Copy link
Copy Markdown
Contributor

Hi All,

This PR adds a custom handler implementation to the route payload failAction, much like the route validate failAction. It addresses #3509.

I have also added tests for the three string failAction types, along with a test for the new functionality.

I'm consistently getting an error in one test locally that was present before I made these changes:

Failed tests:

  757) transmission transmit() handles stream errors on the response after the response has been piped (inject):

      Timed out (3000ms) - transmission transmit() handles stream errors on the response after the response has been piped (inject)

Just a head's up.

Thanks!

@jeff-kilbride
Copy link
Copy Markdown
Contributor Author

I'm using node v6.11.0 locally and it looks like the error I'm getting is also showing up in travis in v4 and v6. It also looks like v4 handles the payload error logged to request-internal a bit differently.

@hueniverse hueniverse self-assigned this Jul 18, 2017
@hueniverse hueniverse added the feature New functionality or improvement label Jul 18, 2017
@hueniverse hueniverse added this to the 16.5.0 milestone Jul 18, 2017
@hueniverse hueniverse merged commit b947831 into hapijs:master Jul 18, 2017
hueniverse added a commit that referenced this pull request Jul 18, 2017
@jeff-kilbride jeff-kilbride deleted the feature/payload_failAction_custom_handler branch August 1, 2017 17:01
@lock
Copy link
Copy Markdown

lock bot commented Jan 9, 2020

This thread has been automatically locked due to inactivity. Please open a new issue for related bugs or questions following the new issue template instructions.

@lock lock bot locked as resolved and limited conversation to collaborators Jan 9, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

feature New functionality or improvement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants