question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TypeError: realFetch.call is not a function

See original GitHub issue

Similar to #87

Included the following import statement but realFetch.call is not a function is still thrown.

import { Redis } from "@upstash/redis/with-fetch";

Environment AWS Lambda Node.js 16.x

Same error with local dev environment using Node.js 16.15.1

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
chronarkcommented, Oct 7, 2022

Hey @weixuanteo I’m working on a fix for this already

please import a fetch polyfill manually for now: For example: npm i isomorphic-fetch

import { Redis } from "@upstash/redis"
import "isomorphic-fetch"

// ...
0reactions
chronarkcommented, Oct 10, 2022

Can you share a minimal example where it fails?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Node.js - realFetch.call is not a function · Issue #194
Trying to use this in a node.js worker and seeing error realFetch.call is not a function (node:41803) UnhandledPromiseRejectionWarning: TypeError: ...
Read more >
Isomorphic fetch not working for external requests?
In order to extract actual data, You might want to call one of the ... return response.text(); }).then(function(body) { res.send(body); .
Read more >
How to use the node-fetch.call function in node-fetch
module.exports = function (url, options) { if (/^\/\//.test(url)) { url = 'https:' + url } return realFetch.call(this, url, options) }. Was this helpful?...
Read more >
How to use graphql with AWS Lambda - Questions
Hi, I want to use graphql with aws lambda function in node platform. How I can do this? any ... TypeError: realFetch.call is...
Read more >
isomorphic-fetch
Trying to use this in a node.js worker and seeing error realFetch.call is not a function (node:41803) UnhandledPromiseRejectionWarning: TypeError: ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found