-
Notifications
You must be signed in to change notification settings - Fork 14
Open
Description
when i try to make more than 1 request - only one gets an ok status, and the others return an error without any detail.
code:
const { get } = require("http2-client");
for (let index = 0; index < 2; index++) {
const req2 = get("https://nghttp2.org/httpbin/get", (e) =>
console.log("OK", e.statusCode, e.httpVersion)
);
req2.on("error", (z) => console.error("ERROR", z));
}
output:
ERROR {
createConnection: [Function: createConnection],
protocol: 'https:',
hostname: 'nghttp2.org',
hash: '',
search: '',
pathname: '/httpbin/get',
path: '/httpbin/get',
href: 'https://nghttp2.org/httpbin/get',
port: 443,
method: 'GET',
headers: { ':method': 'GET', ':path': '/httpbin/get' }
}
OK 200 2.0
node version: 18
Metadata
Metadata
Assignees
Labels
No labels