You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
According to the documentation at https://hapi.dev/api/?v=21.3.12#-request-event, an internally generated error with tags requestclosederror indicates that "the request closed prematurely."
In my own application, I've seen tags of requesterrorclose, which apparently (also?) indicate that the request closed prematurely. I believe that this is logged from https://github.com/hapijs/hapi/blob/v21.3.12/lib/request.js#L720. This set of tags does not appear to be documented.
Therefore, I think that one of the following is true:
requesterrorclose is undocumented and should be added to API.md.
requestclosederror is a mistake, and it's actually requesterrorclose / requestcloseerror (depending on whether tag order is intended to matter).
(I think it's the second, because I don't see in the source code where it can emit a tag of closed - but I could easily be mistaken. requesterrorclose is also more consistent with the documented responseerrorclose.)
The text was updated successfully, but these errors were encountered:
Given that 'close' is now used in practice, I think the best fix will be to correct the documentation.
The ordering should probably also be updated to match, though it should not matter for processing inside hapi (but might for external tools that handle a logged line). The requestaborterror docs should also be updated with the new ordering.
joshkel
added a commit
to joshkel/hapi
that referenced
this issue
Feb 5, 2025
Module version
21.3.12
What documentation problem did you notice?
According to the documentation at https://hapi.dev/api/?v=21.3.12#-request-event, an internally generated error with tags
request
closed
error
indicates that "the request closed prematurely."In my own application, I've seen tags of
request
error
close
, which apparently (also?) indicate that the request closed prematurely. I believe that this is logged from https://github.com/hapijs/hapi/blob/v21.3.12/lib/request.js#L720. This set of tags does not appear to be documented.Therefore, I think that one of the following is true:
request
error
close
is undocumented and should be added to API.md.request
closed
error
is a mistake, and it's actuallyrequest
error
close
/request
close
error
(depending on whether tag order is intended to matter).(I think it's the second, because I don't see in the source code where it can emit a tag of
closed
- but I could easily be mistaken.request
error
close
is also more consistent with the documentedresponse
error
close
.)The text was updated successfully, but these errors were encountered: