fetch icon indicating copy to clipboard operation
fetch copied to clipboard

Opinionated `fetch` (with retrying and DNS caching) optimized for use with Node.js

Results 16 fetch issues
Sort by recently updated
recently updated
newest added

Found this bug while working with https://github.com/transitive-bullshit/react-static-tweets/issues/43 and posted a gnarly post-install work-around over there. The issue happens when doing a GET call on some endpoints, mine specifically being https://syndication.twitter.com/tweets.json?ids=296658470705438720....

I don't know why `jest` is so fast at quitting if sockets should be remaining open with the introduction of `agentkeepalive`

help wanted
question

I am using Craft Nitro (https://getnitro.sh/) for local CMS development and connecting to the api using @vercel/fetch. Nitro provides URL's that look like https://testcms.nitro and updates the /ect/hosts file with...

while we passed FormData in server side , it will run into these code, ``` opts.body = JSON.stringify(opts.body); opts.headers.set('Content-Type', 'application/json'); opts.headers.set('Content-Length', Buffer.byteLength(opts.body)); ``` But for `form-data` in server side, maybe...

Vanilla `fetch` supports passing a `Request` object [as its first parameter](https://developer.mozilla.org/en-US/docs/Web/API/fetch#parameters). This works really great for flows that incrementally build out a `Request` object to then pass to `fetch`. This...

Hello, I'm trying to use @vercel/fetch in nextjs on the serverside Whatever I try I always have the same error: ./node_modules/@zeit/dns-cached-resolve/lib/dns-resolve.js:6:0 Module not found: Can't resolve 'dns' Am I doing...

If the package is used in a javascript project, a warning is thrown: > warning " > @vercel/[email protected]" has unmet peer dependency "@types/node-fetch@2". If this was moved to dev dependencies,...

https://github.com/zeit/dns-cached-resolve/ defaults to 300s, which could be problematic with records with lower ttls. For example, AWS ELBs always use 60s. This would require a change to https://github.com/zeit/fetch-cached-dns/ as well, I...

Looks like multipart requests (like POST with Image) are not working. Multipart requests with FormData body are not supported by the library, I see only string and Buffer are. Should...

We are facing an issue when migrating from `node-fetch` to `@zeit/fetch` due to the fact that some of the properties in provided `opts` object are mutated before calling the decorated...