Node.js Version
v22.12.0
NPM Version
10.9.0
Operating System
Linux amezin-laptop.home.arpa 6.12.4-zen1-1-zen #1 ZEN SMP PREEMPT_DYNAMIC Mon, 09 Dec 2024 14:30:31 +0000 x86_64 GNU/Linux
Subsystem
https
Description
- Download https://nodejs.org/dist/v22.12.0/node-v22.12.0-linux-x64.tar.xz and unpack
- Run bin/node
await fetch('https://www.php.net')
Result:
Response {
status: 503,
statusText: 'Service Temporarily Unavailable',
headers: Headers {
server: 'myracloud',
date: 'Mon, 16 Dec 2024 07:43:14 GMT',
'content-type': 'text/html',
'transfer-encoding': 'chunked',
connection: 'keep-alive',
'cache-control': 'no-cache, no-store, max-age=0',
'x-content-type-options': 'nosniff',
'x-xss-protection': '1; mode=block',
'x-frame-options': 'SAMEORIGIN'
},
body: ReadableStream { locked: false, state: 'readable', supportsBYOB: true },
bodyUsed: false,
ok: false,
redirected: false,
type: 'basic',
url: 'https://www.php.net/'
}
When I do the same await fetch('https://www.php.net') in nodejs-lts-iron-20.18.1-1, or nodejs-23.4.0-1, provided by Arch Linux, I get:
Response {
status: 200,
statusText: 'OK',
headers: Headers {
server: 'myracloud',
date: 'Mon, 16 Dec 2024 07:43:56 GMT',
'content-type': 'text/html; charset=utf-8',
'transfer-encoding': 'chunked',
connection: 'keep-alive',
'last-modified': 'Mon, 16 Dec 2024 07:30:09 GMT',
'content-language': 'en',
'permissions-policy': 'interest-cohort=()',
'x-frame-options': 'SAMEORIGIN',
'set-cookie': 'LAST_NEWS=1734335036; expires=Tue, 16 Dec 2025 07:43:56 GMT; Max-Age=31536000; path=/; domain=.php.net',
link: '<https://www.php.net/index>; rel=shorturl',
'content-encoding': 'gzip',
vary: 'accept-encoding',
expires: 'Mon, 16 Dec 2024 07:43:56 GMT',
'cache-control': 'max-age=0'
},
body: ReadableStream { locked: false, state: 'readable', supportsBYOB: true },
bodyUsed: false,
ok: true,
redirected: false,
type: 'basic',
url: 'https://www.php.net/'
}
Also the page opens successfully in Firefox, curl successfully downloads it.
Why does it happen and can it be fixed?
Minimal Reproduction
No response
Output
No response
Before You Submit
Node.js Version
v22.12.0
NPM Version
10.9.0
Operating System
Linux amezin-laptop.home.arpa 6.12.4-zen1-1-zen #1 ZEN SMP PREEMPT_DYNAMIC Mon, 09 Dec 2024 14:30:31 +0000 x86_64 GNU/Linux
Subsystem
https
Description
await fetch('https://www.php.net')Result:
When I do the same
await fetch('https://www.php.net')innodejs-lts-iron-20.18.1-1, ornodejs-23.4.0-1, provided by Arch Linux, I get:Also the page opens successfully in Firefox, curl successfully downloads it.
Why does it happen and can it be fixed?
Minimal Reproduction
No response
Output
No response
Before You Submit