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 — ERR_TLS_RENEGOTIATE, ERR_HTTP2_SETTINGS_CANCEL are not defined · Issue #21440 · nodejs/node

ERR_TLS_RENEGOTIATE, ERR_HTTP2_SETTINGS_CANCEL are not defined #21440

New issue
Copy link
New issue
Copy link
Closed
Closed
ERR_TLS_RENEGOTIATE, ERR_HTTP2_SETTINGS_CANCEL are not defined#21440
Copy link
Labels
docIssues and PRs related to Node.js documentation.errorsIssues and PRs related to JavaScript errors originating in Node.js core.esmIssues and PRs related to the ECMAScript Modules implementation.help wantedIssues that need assistance from volunteers or PRs that need help to proceed.http2Issues and PRs related to the http2 subsystem.tlsIssues and PRs related to the tls subsystem.

Description

@ChALkeR
ChALkeR
opened on Jun 21, 2018
Issue body actions

While taking a look at #21435 / #21421, I did a quick and dirty check which errors are being instantiated and /lib and checked what happened.

  1. ERR_MISSING_DYNAMIC_INTSTANTIATE_HOOK seems to be used in loader, but never defined.

    node/lib/internal/modules/esm/loader.js

    Lines 6 to 8 in b56f65e

    ERR_MISSING_DYNAMIC_INTSTANTIATE_HOOK,
    ERR_UNKNOWN_MODULE_FORMAT
    } = require('internal/errors').codes;

    node/lib/internal/modules/esm/loader.js

    Lines 95 to 96 in b56f65e

    if (typeof this._dynamicInstantiate !== 'function')
    throw new ERR_MISSING_DYNAMIC_INTSTANTIATE_HOOK();
    Not defined in lib/internal/errors.js.

  2. ERR_TLS_RENEGOTIATE seems to be used in tls, but never defined.

    node/lib/_tls_wrap.js

    Lines 47 to 52 in b56f65e

    ERR_TLS_RENEGOTIATE,
    ERR_TLS_RENEGOTIATION_DISABLED,
    ERR_TLS_REQUIRED_SERVER_NAME,
    ERR_TLS_SESSION_ATTACK,
    ERR_TLS_SNI_FROM_SERVER
    } = require('internal/errors').codes;

    node/lib/_tls_wrap.js

    Lines 572 to 574 in b56f65e

    if (callback) {
    process.nextTick(callback, new ERR_TLS_RENEGOTIATE());
    }
    Not defined in lib/internal/errors.js.

  3. ERR_HTTP2_SETTINGS_CANCEL seems to be used in http2, but never defined.

    node/lib/internal/http2/core.js

    Lines 45 to 62 in b56f65e

    ERR_HTTP2_SETTINGS_CANCEL,
    ERR_HTTP2_SOCKET_BOUND,
    ERR_HTTP2_STATUS_101,
    ERR_HTTP2_STATUS_INVALID,
    ERR_HTTP2_STREAM_CANCEL,
    ERR_HTTP2_STREAM_ERROR,
    ERR_HTTP2_STREAM_SELF_DEPENDENCY,
    ERR_HTTP2_TRAILERS_ALREADY_SENT,
    ERR_HTTP2_TRAILERS_NOT_READY,
    ERR_HTTP2_UNSUPPORTED_PROTOCOL,
    ERR_INVALID_ARG_TYPE,
    ERR_INVALID_CALLBACK,
    ERR_INVALID_CHAR,
    ERR_INVALID_OPT_VALUE,
    ERR_OUT_OF_RANGE,
    ERR_SOCKET_CLOSED
    }
    } = require('internal/errors');

    node/lib/internal/http2/core.js

    Lines 615 to 616 in b56f65e

    if (typeof cb === 'function')
    cb(new ERR_HTTP2_SETTINGS_CANCEL());
    Not defined in lib/internal/errors.js.

This probably affects all 10.x versions, but was not backported to earlier branches as is a semver-major.

Blame points at 1d2fd8b / #19137.

/cc @targos

This also probably needs a testcase when fixed, I do not have one atm.

Activity

Next
  1. ChALkeR
    added
    errorsIssues and PRs related to JavaScript errors originating in Node.js core.
    tlsIssues and PRs related to the tls subsystem.
    http2Issues and PRs related to the http2 subsystem.
    on Jun 21, 2018
  2. ChALkeR
    changed the title [-]ERR_MISSING_DYNAMIC_INTSTANTIATE_HOOK is not defined[/-] [+]ERR_MISSING_DYNAMIC_INTSTANTIATE_HOOK, ERR_TLS_RENEGOTIATE, ERR_HTTP2_SETTINGS_CANCEL are not defined[/+] on Jun 21, 2018
  3. BridgeAR commented on Jun 21, 2018

    @BridgeAR
    BridgeAR
    on Jun 21, 2018
    Member
    More actions

    @ChALkeR the blame is wrong. The typo was introduced in 921fb84. Because of the typo the error did not seem to be used anymore so I removed that in 6e1c25c.

  4. ChALkeR commented on Jun 21, 2018

    @ChALkeR
    ChALkeR
    on Jun 21, 2018
    MemberAuthor
    More actions

    @BridgeAR I am looking only at JS side, not docs.

    At 1d2fd8b, there is no ERR_MISSING_DY***, ERR_TLS_RENEGOTIATE or ERR_HTTP2_SETTINGS_CANCEL defined, but those are directly used as properties (for the first time).

    I could be wrong with interpreting blame output, and those might have been removed earlier.

  5. BridgeAR commented on Jun 21, 2018

    @BridgeAR
    BridgeAR
    on Jun 21, 2018
    Member
    More actions

    Oh, I only looked at the first entry before the edits.

  6. ChALkeR commented on Jun 21, 2018

    @ChALkeR
    ChALkeR
    on Jun 21, 2018
    MemberAuthor
    More actions

    This is the list of errors that seem to be missing documentation:

    ERR_HTTP2_ERROR
    ERR_UNKNOWN_BUILTIN_MODULE
    ERR_HTTP2_SETTINGS_CANCEL
    ERR_MISSING_DYNAMIC_INTSTANTIATE_HOOK
    ERR_TLS_RENEGOTIATE
    

    Those are the three mentioned above (that also miss implementation), plus:

    1. ERR_HTTP2_ERROR (used in lib/internal/http2/util.js).
    2. ERR_UNKNOWN_BUILTIN_MODULE (used in lib/internal/bootstrap/loaders.js).
  7. BridgeAR commented on Jun 21, 2018

    @BridgeAR
    BridgeAR
    on Jun 21, 2018
    Member
    More actions
    1. Was never properly ported: f67aa56 (the error code was not created at all).
    Reacted by Nikita Skovoroda
  8. BridgeAR commented on Jun 21, 2018

    @BridgeAR
    BridgeAR
    on Jun 21, 2018
    Member
    More actions
    1. Was never properly implemented: bbaea12
    Reacted by Nikita Skovoroda
  9. BridgeAR commented on Jun 21, 2018

    @BridgeAR
    BridgeAR
    on Jun 21, 2018
    Member
    More actions

    ERR_UNKNOWN_BUILTIN_MODULE is a false positive. It is actually added to the error directly instead of using internal/errors.

  10. BridgeAR commented on Jun 21, 2018

    @BridgeAR
    BridgeAR
    on Jun 21, 2018
    Member
    More actions

    ERR_HTTP2_ERROR is a false positive as well.

  11. ChALkeR commented on Jun 21, 2018

    @ChALkeR
    ChALkeR
    on Jun 21, 2018
    MemberAuthor
    More actions

    @BridgeAR #21440 (comment) is specifically about documentation — I saw how those are created and it's ok that they are not present in internal/errors, but they should be documented nevertheless if the user might experience those. I do not think that those are false positives.

  12. ChALkeR commented on Jun 21, 2018

    @ChALkeR
    ChALkeR
    on Jun 21, 2018
    MemberAuthor
    More actions

    Based on f67aa56, this might also affect v9.x branch.

  13. BridgeAR commented on Jun 21, 2018

    @BridgeAR
    BridgeAR
    on Jun 21, 2018
    Member
    More actions

    Oh, true. They were falsely removed in 1cdb41f.

  14. 40 remaining items

  15. targos
    added a commit that references this issue on Jul 3, 2018

    errors: fix ERR_MISSING_DYNAMIC_INSTANTIATE_HOOK

    1e5afb7
  16. vsemozhetbyt
    added a commit that references this issue on Jul 13, 2018

    errors: fix undefined HTTP2 and tls errors

    3950a3e
  17. targos
    added a commit that references this issue on Jul 14, 2018

    errors: fix undefined HTTP2 and tls errors

    3fffc7e
  18. ChALkeR commented on Jul 23, 2018

    @ChALkeR
    ChALkeR
    on Jul 23, 2018
    MemberAuthor
    More actions

    I believe this was fixed in #21493 and #21564.

  19. ChALkeR
    closed this as completedon Jul 23, 2018
  20. kjin
    added a commit that references this issue on Aug 23, 2018

    errors: fix undefined HTTP2 and tls errors

    7b721eb
  21. ChALkeR
    added a commit that references this issue on Sep 8, 2018

    test: add test for error codes doc and impl

    8e41fd7
  22. kjin
    added a commit that references this issue on Oct 16, 2018

    errors: fix undefined HTTP2 and tls errors

    a9053fa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    docIssues and PRs related to Node.js documentation.errorsIssues and PRs related to JavaScript errors originating in Node.js core.esmIssues and PRs related to the ECMAScript Modules implementation.help wantedIssues that need assistance from volunteers or PRs that need help to proceed.http2Issues and PRs related to the http2 subsystem.tlsIssues and PRs related to the tls subsystem.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      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.