sigstore / sigstore-js

Code-signing for npm packages
Apache License 2.0
155 stars 22 forks source link

fix retry bug when calling external apis #1148

Closed bdehamer closed 4 months ago

bdehamer commented 4 months ago

To compensate for the fact that make-fetch-happen doesn't support retries for "POST" requests, this change introduces a wrapper around the fetcher which will retry requests to Fulcio/Rekor/TSA for network errors or for HTTP status codes of 408, 429, or 5xx.

changeset-bot[bot] commented 4 months ago

🦋 Changeset detected

Latest commit: d26321a036313b9da080ca21ea4675e13e05c26a

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package | Name | Type | | -------------- | ----- | | @sigstore/sign | Patch |

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR