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.

`.finally()` is not a function

See original GitHub issue

This issue appears to be an upstream issue with node-fetch with it’s home grown promises, but this does cause errors with when attempting to use this library with others that do expect .finally() to exist.

It seems that the next version of node-fetch will support promises, so that is worth keeping an eye on.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
mdlavincommented, Feb 1, 2021

Let’s wait for the full release. It seems like they’ve been in pre-release mode for a long time. I’d feel safer waiting for the final one

1reaction
mdlavincommented, Feb 1, 2021

Thanks for the heads up. When the new version of node-fetch is released, would you be up for creating a PR to upgrade?

Read more comments on GitHub >

github_iconTop Results From Across the Web

api.get(...).then(...).catch(...).finally is not a function
finally() doesn't supported by all of browsers. To ensure my code works on the all browser, i always use .catch() followed by .then()...
Read more >
Promise.prototype.finally() - JavaScript - MDN Web Docs
The finally() method of a Promise object schedules a function to be called when the promise is settled (either fulfilled or rejected).
Read more >
Error finally is not a function #56 - Vizzuality/layer-manager
In happens in Firefox 68.0.1 64-bit. It is happening in all projects based on create-react-app (webpack, babel an react). ... I open this...
Read more >
Firefox Promise - getting finally is not a function? : r/javascript
Hello all, According to https://caniuse.com/#search=finally and…
Read more >
JavaScript Promise finally()
In this tutorial, you will learn how to use the JavaScript Promise finally() method to execute the code once the promise is settled....
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