Skip to content

Use an alternative to got #574

@fengkx

Description

@fengkx

Why

We are fetching feed using got, But in new lts docker which use Node 16, got@11 has some bug. When I upgrade to got@12 beta using got-cjs package, because we can't upgrade to esm module for some reason, got start to throw unhandledrejection on its beforeError function.

https://sentry.io/share/issue/fc3100c57306493ca2809a91397b808f/
https://sentry.io/share/issue/7f246477131040e687fe8ef2f968d693/
https://sentry.io/share/issue/6ef2f4a57d55423681aa136cf16ceec9/

and we don't need much function got provided, so we can move to an alternative. Currently I want to switch to undici

Some function we need and provided by got.

  1. agent to support http proxy
  2. retry on some error
  3. encoding convert with got-iconv

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions