This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
[Hapi + Nextjs] custom-server-hapi got a [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client #19004
Labels
Milestone
Bug report
Describe the bug
I started the
custom-server-hapi
project and try to visit/a
, the page could response correctly but the server output an errorUnhandledPromiseRejectionWarning [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client
.To Reproduce
Steps to reproduce the behavior, please provide code snippets or a repository:
localhost:3000/a
[ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client
, and repeat a lotExpected behavior
Page can be responsed correctly and no error in server output.
Screenshots
Page in browser:
Server output:
System information
9.5.5
orcanary
Additional context
Love Nextjs!
The text was updated successfully, but these errors were encountered: