-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Closed
Labels
Description
import fetch from 'node-fetch'
const response = await fetch('https://blog.logrocket.com/feed')
const body = await response.text()
console.log(body)
throws
file:///root/fetchbug/node_modules/node-fetch/src/index.js:99
response.body.destroy(error);
^
TypeError: Cannot read property 'body' of null
at file:///root/fetchbug/node_modules/node-fetch/src/index.js:99:13
at TLSSocket.<anonymous> (file:///root/fetchbug/node_modules/node-fetch/src/index.js:310:6)
at TLSSocket.emit (events.js:327:22)
at net.js:673:12
at TCP.done (_tls_wrap.js:563:7)
| software | version |
|---|---|
| node-fetch | 3.0.0-beta.10 |
| node | v14.16.0 |
| npm | 7.17.0 |
| Operating System | archlinux |
Reactions are currently unavailable