-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Closed
Labels
Description
Reproduction
Steps to reproduce the behavior:
- use node-fetch to request url https://r2---sn-n4v7sney.googlevideo.com
- throw error:
TypeError: Invalid URL
You can try to reproduce the issue by running the code below
const fetch = require('node-fetch')
async function getAudio() {
const ret = await fetch('https://r2---sn-n4v7sney.googlevideo.com')
const text = await ret.text()
return text
}
getAudio().catch(e => console.error(e))Expected behavior
https://r2---sn-n4v7sney.googlevideo.com is a valid url
Screenshots
Your Environment
| software | version |
|---|---|
| node-fetch | 2.6.5 |
| node | v14.18.1 |
| npm | 6.14.15 |
| Operating System | Windows 10 |
Additional context
Reactions are currently unavailable
