GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — errors: alter ERR_HTTP2_INVALID_CONNECTION_HEADERS by davidmarkclements · Pull Request #19807 · nodejs/node

Conversation

@davidmarkclements

@davidmarkclements davidmarkclements commented Apr 4, 2018

Copy link
Copy Markdown
Member

changes the base instance for ERR_HTTP2_INVALID_CONNECTION_HEADERS
from Error to TypeError as a more accurate representation
of the error.

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • commit message follows commit guidelines

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
davidmarkclements
errors: alter ERR_HTTP2_INVALID_CONNECTION_HEADERS
b53ac5c
changes the base instance for ERR_HTTP2_INVALID_CONNECTION_HEADERS
from Error to TypeError as a more accurate representation
of the error.
@nodejs-github-bot nodejs-github-bot added the errors Issues and PRs related to JavaScript errors originating in Node.js core. label Apr 4, 2018
BridgeAR
BridgeAR reviewed Apr 4, 2018
View reviewed changes

@BridgeAR BridgeAR left a comment

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess no test is failing and it would be great if you could add a test in that case as well.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread lib/internal/errors.js
E('ERR_HTTP2_INFO_STATUS_NOT_ALLOWED',
'Informational status codes cannot be used', RangeError);

// This should probably be a `TypeError`.

@BridgeAR BridgeAR Apr 4, 2018

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: please also remove the line break above as all other errors are directly beneath each other.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
David Mark Clements
fixup: address comment
a6b9fb4
jasnell
jasnell approved these changes Apr 4, 2018
View reviewed changes
@BridgeAR BridgeAR added the semver-major PRs that contain breaking changes and should be released in the next major version. label Apr 4, 2018
Trott
Trott previously requested changes Apr 4, 2018
View reviewed changes

@Trott Trott left a comment

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I hate to be the Bringer Of The Red X but I'm really reluctant to overload TypeError like this. This is an invalid value, an invalid object, a malformed parameter, it's all sorts of things but TypeError doesn't seem like the correct description for it.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@BridgeAR

BridgeAR commented Apr 4, 2018

Copy link
Copy Markdown
Member

@Trott so far we use the TypeError to indicate faulty user input. The same is also done in chrome at times.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@Trott

Trott commented Apr 4, 2018

Copy link
Copy Markdown
Member

The same is also done in chrome at times.

That could be compelling. Can you point to an example? (Or, of course, point me to where you've already explained this if I'm asking you to repeat something you've already laid out somewhere...)

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@BridgeAR

BridgeAR commented Apr 4, 2018

Copy link
Copy Markdown
Member

I do not have a example handy but I am absolutely certain that I had cases like that before. I can check the V8 code base but I would rather not as it probably takes some time.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@davidmarkclements

davidmarkclements commented Apr 4, 2018

Copy link
Copy Markdown
Member Author

attempting to set the length property of an array if the length property is read only results in a type error:

https://github.com/nodejs/node/blob/master/deps/v8/src/accessors.cc#L189

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@Trott
Trott dismissed their stale review April 4, 2018 19:47

quietly going away

trivikr
trivikr approved these changes Apr 5, 2018
View reviewed changes
@BridgeAR
BridgeAR requested a review from a team April 9, 2018 10:42
@BridgeAR

BridgeAR commented Apr 9, 2018

Copy link
Copy Markdown
Member

CI https://ci.nodejs.org/job/node-test-pull-request/14135/

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@BridgeAR BridgeAR added the author ready PRs with CI started, the required approvals, and no outstanding review comments. label Apr 9, 2018
mcollina
mcollina approved these changes Apr 9, 2018
View reviewed changes

@mcollina mcollina left a comment

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM but I would prefer a test.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@targos targos removed the semver-major PRs that contain breaking changes and should be released in the next major version. label Apr 9, 2018
@BridgeAR

BridgeAR commented Apr 9, 2018

Copy link
Copy Markdown
Member

@davidmarkclements would you be so kind and add a test?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

davidmarkclements
add TypeError checks to unit tests
4fc3cbb
@davidmarkclements

davidmarkclements commented Apr 11, 2018

Copy link
Copy Markdown
Member Author

@BridgeAR checks added

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

trivikr
trivikr approved these changes Apr 12, 2018
View reviewed changes
@trivikr

trivikr commented Apr 12, 2018

Copy link
Copy Markdown
Member

CI: https://ci.nodejs.org/job/node-test-pull-request/14214/

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

mcollina
mcollina approved these changes Apr 12, 2018
View reviewed changes

@mcollina mcollina left a comment

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Still LGTM

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
BridgeAR
BridgeAR approved these changes Apr 13, 2018
View reviewed changes
@BridgeAR

BridgeAR commented Apr 13, 2018

Copy link
Copy Markdown
Member

Landed in a37e267 🎉

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@BridgeAR BridgeAR closed this Apr 13, 2018
BridgeAR pushed a commit to BridgeAR/node that referenced this pull request Apr 13, 2018
davidmarkclements @BridgeAR
errors: alter ERR_HTTP2_INVALID_CONNECTION_HEADERS
a37e267
changes the base instance for ERR_HTTP2_INVALID_CONNECTION_HEADERS
from Error to TypeError as a more accurate representation
of the error.

PR-URL: nodejs#19807
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Trivikram Kamat <[email protected]>
Reviewed-By: Matteo Collina <[email protected]>
Reviewed-By: Ruben Bridgewater <[email protected]>
@davidmarkclements davidmarkclements mentioned this pull request Apr 16, 2018
changes the base instance for ERR_UNKNOWN_FILE_EXTENSION #20069
Closed
3 tasks done
jasnell pushed a commit that referenced this pull request Apr 16, 2018
davidmarkclements @jasnell
errors: alter ERR_HTTP2_INVALID_CONNECTION_HEADERS
b6fbe16
changes the base instance for ERR_HTTP2_INVALID_CONNECTION_HEADERS
from Error to TypeError as a more accurate representation
of the error.

PR-URL: #19807
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Trivikram Kamat <[email protected]>
Reviewed-By: Matteo Collina <[email protected]>
Reviewed-By: Ruben Bridgewater <[email protected]>
BridgeAR pushed a commit to BridgeAR/node that referenced this pull request May 1, 2018
davidmarkclements @BridgeAR
errors: alter ERR_HTTP2_INVALID_CONNECTION_HEADERS
a0fdfee
changes the base instance for ERR_HTTP2_INVALID_CONNECTION_HEADERS
from Error to TypeError as a more accurate representation
of the error.

PR-URL: nodejs#19807
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Trivikram Kamat <[email protected]>
Reviewed-By: Matteo Collina <[email protected]>
Reviewed-By: Ruben Bridgewater <[email protected]>
@kjin kjin mentioned this pull request Sep 19, 2018
[8.x] Backport http2 changes from 10.x #22850
Closed
3 of 4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@mcollina mcollina mcollina approved these changes
@jasnell jasnell jasnell approved these changes
@BridgeAR BridgeAR BridgeAR approved these changes
@trivikr trivikr trivikr approved these changes
@Trott Trott Trott left review comments

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

author ready PRs with CI started, the required approvals, and no outstanding review comments. errors Issues and PRs related to JavaScript errors originating in Node.js core.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

8 participants

@davidmarkclements @BridgeAR @Trott @trivikr @mcollina @jasnell @targos @nodejs-github-bot
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.