Skip to content

request closed error tags #4542

@joshkel

Description

@joshkel

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:

  1. request error close is undocumented and should be added to API.md.
  2. request closed error is a mistake, and it's actually request 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 documented response error close.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions