parser error reason reading is not safe
See original GitHub issueIf 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:
- Created 2 years ago
- Reactions:1
- Comments:12 (12 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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?
I’ve only tried with HPE_PAUSED. But there are other return codes that might or might not suffer from the same problem.