question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Flaky test 😕

 FAIL  test/client-stream.js
 ✖ Expected HTTP/

  test/client-stream.js                    
  314 |       return pt                    
  315 |     }, (err) => {                  
> 316 |       t.error(err)                 
      | --------^                          
  317 |       t.equal(pt.destroyed, true)  
  318 |     })                             
  319 |   })                               

  test: test/client-stream.js stream destroy if not readable
  stack: |
    test/client-stream.js:316:9
    lib/api/api-stream.js:150:14

  Error Origin:

      }
      util.destroy(socket, new HTTPParserError(message, constants.ERROR[ret]))
---------------------------^
    }
  }

  at:
    line: 564
    column: 28
    file: lib/client.js
    function: Parser.execute
  stack: |
    Parser.execute (lib/client.js:564:28)
  type: HTTPParserError
  code: HPE_INVALID_CONSTANT
  message: Expected HTTP/

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:30 (30 by maintainers)

github_iconTop GitHub Comments

1reaction
ronagcommented, Apr 15, 2021

Maybe would be nice if there was a meaningful way to dump the llhttp state? @indutny

1reaction
ronagcommented, Apr 15, 2021

Maybe this one:

cc @ronag

Nope. Not that one. I don’t remember if/when I saw it on CI last time. As I said this issue was created when it happened locally.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Parse Error: Expected HTTP/ · Issue #662 - GitHub
Using a get request saved in a send.http file (GET http://url HTTP/1.1) it now shows a Parse Error: expected HTTP/.
Read more >
python - Parse Error: The server returned a malformed response
What does Error: Parse Error: Expected HTTP/ mean? I checked my app logs but it seems it is not handling any request, even...
Read more >
Expect - HTTP - MDN Web Docs - Mozilla
The Expect HTTP request header indicates expectations that need to be met by the server to handle the request successfully.
Read more >
Getting Error: "Parse Error: Expected HTTP" - General
Hi,. I have a ethernet webrelay (WebRelay | Ethernet Relay | Remote Relay Control) that opens my front door.
Read more >
"Error: Parse Error: Expected HTTP/" when using dns
I have a simple http rest api, which works perfectly when using the ip address directly. I made a dns A record (unproxied)...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found