Skip to content

Broken on node 10.1.0+ #57

Closed
Closed

Description

@richardlay

Our tests fail with HPE_INVALID_METHOD when we upgrade to node 10.1.0. Node 10.0.0 still works.
I believe this is related to this change: nodejs/node#20250

Activity

  1. lakeskysea commented on Sep 20, 2018

    @lakeskysea

    Encountering the same issue and Node upgrade is blocked. Any updates?

  2. richardlay commented on Sep 21, 2018

    @richardlay
    Author

    Not from me. I removed the library and haven't had any response related issues (yet). We're using Node 10.9.0.

  3. Jimbly commented on Sep 21, 2018

    @Jimbly
    Collaborator

    I've not had time to look at it - dealing with a PS4 launch, so open source stuff has taken a back burner for a while, but maybe my schedule will open up in a couple weeks ^_^. If anyone wants to take a stab at a fix and PR, I'll happily look at it.

  4. Jimbly commented on Sep 27, 2018

    @Jimbly
    Collaborator

    What exactly is the case that is failing? The automated test suite is (mostly) passing on Node 10, except for some edge cases (e.g. calling req.end() a second time behaves differently now, but no one should be doing that anyway). Nothing I tried fails with the error you've mentioned. Are you using this library as a replacement for http parsing as a client or a server? Can you provide a minimal test case that fails?

  5. paulrutter commented on Oct 11, 2018

    @paulrutter
    Contributor

    I upgraded to Node.js 10.12.0, but haven't encountered this specific issue.
    I did find a more fundamental issue, which has been fixed in my PR (#58). Can you try my fork to see if it still an issue?

  6. bkbits commented on Oct 21, 2018

    @bkbits

    @Jimbly
    I write a test code.
    https://github.com/blackknifes/http-parser-test
    You can pull this repo.

    run server: npm run server
    run http-parser-test: npm run dev

    The source code use electron V3.x. You can see error on webpage or console of devtools.

  7. Jimbly commented on Oct 22, 2018

    @Jimbly
    Collaborator

    When I run dev, electron just silently fails, not sure what's up with that. However, looking at the code, it does look like electron is running everything in a child process, so it's quite likely it's the same issue with Node child processes being unable to monkey-patch in HTTP Parser.

  8. bkbits commented on Oct 26, 2018

    @bkbits

    When I run dev, electron just silently fails, not sure what's up with that. However, looking at the code, it does look like electron is running everything in a child process, so it's quite likely it's the same issue with Node child processes being unable to monkey-patch in HTTP Parser.

    Can fix it at node 10.x ? if can't, I will write http module with socket...

  9. Jimbly commented on Oct 26, 2018

    @Jimbly
    Collaborator

    Assuming it's the child process issue, there's currently no way to fix it on our end, a fix would need to be made in Node to allow monkey-patching again. v10.0.0 works, but not v10.1.0+. We have an issue opened with the Node.js repo, but have not had any response yet.

  10. Jimbly commented on Feb 13, 2019

    @Jimbly
    Collaborator

    Node v10.15.1 has been released, which includes my PR, which should resolve issues with being unable to monkeypatch in http-parser-js.

    There is no way to reliably monkeypatch the http parser in Node versions v10.1 through v10.15.0, so you'll need a newer (or older) Node version. If anyone is still having issues on Node v10.15.1+, please let us know!

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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions