Skip to content

Conversation

koesie10
Copy link
Member

@koesie10 koesie10 commented Oct 8, 2024

This removes the dependency on node-fetch and uses the native Node.js fetch that is included in Node.js 20. This fixes an issue where some requests would fail without an error.

Unfortunately, there is 1 test for which I couldn't find a way to make it work, so I've skipped that test (variant-analysis-submission-integration.test.ts).

I've also manually tested these changes. There is a change in how we're handling timeout errors (since the AbortError doesn't exist anymore), but I was able to confirm that we still show the "The download timed out." error when a download times out.

@koesie10 koesie10 force-pushed the koesie10/switch-to-native-fetch branch from a07075b to f184b21 Compare October 8, 2024 13:33
@koesie10 koesie10 marked this pull request as ready for review October 8, 2024 13:48
@koesie10 koesie10 requested review from a team as code owners October 8, 2024 13:48
Copy link
Contributor

@robertbrignull robertbrignull left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks reasonable to me. I've given it some quick tests and I didn't get any download errors.

@koesie10 koesie10 merged commit 4e34288 into main Oct 9, 2024
53 checks passed
@koesie10 koesie10 deleted the koesie10/switch-to-native-fetch branch October 9, 2024 08:03
@shati-patel shati-patel mentioned this pull request Oct 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants