Skip to content

HTTP 449 error sending request from node version 17 and above #52449

Open
@wkuc

Description

@wkuc

Version

20.12.1

Platform

Darwin wkuc-na 23.1.0 Darwin Kernel Version 23.1.0: Mon Oct 9 21:28:12 PDT 2023; root:xnu-10002.41.9~6/RELEASE_ARM64_T8103 arm64

Subsystem

No response

What steps will reproduce the bug?

Just run code in node version >= 17:

const https = require('https');

https.get('https://autokult.pl', (res) => {
      console.log(process.versions.node, res.statusCode);
    let rawData = '';
    res.on('data', (chunk) => {
        rawData += chunk;
    });
    res.on('end', () => {
        //console.log(rawData)
    });
}).on('error', (e) => {
    console.error(`Got error: ${e.message}`);
});

Response code is 449.

How often does it reproduce? Is there a required condition?

Always in node environment >= 17

What is the expected behavior? Why is that the expected behavior?

Response should return status 200

What do you see instead?

Response code is 449.

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    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