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.

parser error reason reading is not safe

See original GitHub issue

If execute e.g. returns HPE_PAUSED then the logic for reading the reason string goes crazy.

This can be reproduced by making kOnBody return 21 at the end and running npm run test.

Invalid EOF statePausedHPE_OKHPE_INTERNALHPE_STRICTHPE_LF_EXPECTEDHPE_UNEXPECTED_CONTENT_LENGTHHPE_CLOSED_CONNECTIONHPE_INVALID_METHODHPE_INVALID_URLHPE_INVALID_CONSTANTHPE_INVALID_VERSIONHPE_INVALID_HEADER_TOKENHPE_INVALID_CONTENT_LENGTHHPE_INVALID_CHUNK_SIZEHPE_INVALID_STATUSHPE_INVALID_EOF_STATEHPE_INVALID_TRANSFER_ENCODINGHPE_CB_MESSAGE_BEGINHPE_CB_HEADERS_COMPLETEHPE_CB_MESSAGE_COMPLETEHPE_CB_CHUNK_HEADERHPE_CB_CHUNK_COMPLETEHPE_PAUSEDHPE_PAUSED_UPGRADEHPE_USERDELETEGETHEADPOSTPUTCONNECTOPTIONSTRACECOPYLOCKMKCOLMOVEPROPFINDPROPPATCHSEARCHUNLOCKBINDREBINDUNBINDACLREPORTMKACTIVITYCHECKOUTMERGEM-SEARCHNOTIFYSUBSCRIBEUNSUBSCRIBEPATCHPURGEMKCALENDARLINKUNLINKSOURCEPRIDESCRIBEANNOUNCESETUPPLAYPAUSETEARDOWNGET_PARAMETERSET_PARAMETERREDIRECTRECORDFLUSHQXep������4K^t�����
                                                                                                                                                            (/38=AIQW\aglu����������������"+16<ESajqPause on CONNECT/Upgradeloseeep-aliveContent-Length overflowInvalid character in Content-Lengthchunked
                                                          
> 180 |       return new HTTPParserError(message, code)                                                          

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:12 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
dnlupcommented, Apr 6, 2021

I think HPE_PAUSED should be explicitly handled, in Node the error reason is set accordingly when pausing:

Just thinking out loud, I have to work on it. I think this is related to the work in https://github.com/nodejs/undici/pull/683 , right?

1reaction
ronagcommented, Apr 6, 2021

I’ve only tried with HPE_PAUSED. But there are other return codes that might or might not suffer from the same problem.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Parser Error Message (with Solution). What is a Parse Error?
This leads to a parse error because the code cannot be read and interpreted correctly by the PHP parser. The corresponding error message...
Read more >
Corrupt File In Relation to Parser Error [SOLVED]
Error 0x80070570: The file or directory is corrupted and unreadable." I have attempted to boot up in Safe Mode to complete the renaming,...
Read more >
Parser Error when deploy ASP.NET application - Stack Overflow
There was no error when all ASPX and ASHX files ran in IIS Express locally, but once deployed to the server they stopped...
Read more >
false error message: scripts folder contains parser errors
Hi, I've been seeing errors reported by our build system that I haven't been able to figure out. Here's a sample error message:...
Read more >
Solved: Error message help: webauthRedirect Parse Error
bytes parsed = 0 and bytes read = 128[...It occurred 3 times.!] *webauthRedirect: Mar 05 13:30:53.734: %EMWEB-3-PARSE_ERROR: webauth_redirect.c:954 ...
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