Skip to content

Header name is not added in the error message for the case of invalid characters in the header #14754

@subeeshcbabu-zz

Description

@subeeshcbabu-zz
  • Version: 8.x, 6.x, 4.x (It could be all the versions)
  • Platform: all
  • Subsystem: http

Node http core module throws a TypeError - The header content contains invalid characters in the case of invalid characters present in any of the headers.

It would be awesome, if the name of the header is also gets added, as part of the error message here

Right now it is really difficlut to identify the root cause of the issue, from the error message.

The debuglog has the header name, however, enabling the http debuglog on a production like environment, generates lots of logs and it makes it really difficult to find the root cause of the issue from debuglogs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    errorsIssues and PRs related to JavaScript errors originated in Node.js core.httpIssues or PRs related to the http subsystem.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions