We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
v18.2.0
Linux mamluk-ATX 5.13.0-41-generic #46~20.04.1-Ubuntu SMP Wed Apr 20 13:16:21 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
fetch
const url = new URL('https://google.com/') const resp = await fetch(url) console.log({resp})
always
Fetch should request the URL
Fetch does not support URL objects as input
It works in the browser, so I would expect to work also on node.
The text was updated successfully, but these errors were encountered:
The code you posted works fine in Node.js 18.
Sorry, something went wrong.
Sorry you are right, it was a simple typo.
No branches or pull requests
Version
v18.2.0
Platform
Linux mamluk-ATX 5.13.0-41-generic #46~20.04.1-Ubuntu SMP Wed Apr 20 13:16:21 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
Subsystem
fetch
What steps will reproduce the bug?
How often does it reproduce? Is there a required condition?
always
What is the expected behavior?
Fetch should request the URL
What do you see instead?
Fetch does not support URL objects as input
Additional information
It works in the browser, so I would expect to work also on node.
The text was updated successfully, but these errors were encountered: