Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: demote server connection errors and contract clarity errors to be non-retryable #249

Merged
merged 1 commit into from
Aug 27, 2024

Conversation

rafaelcr
Copy link
Collaborator

Some of the errors we were considering as retryable were not really retryable. For example, if a metadata server produced an ECONNRESET error, most of the time it was an error that happened consistently even when retrying after a while. Since we're running in strict mode, this caused an inifite retry of these jobs which makes no sense.

Because of this, this PR only leaves temporary Stacks node errors and 429 rate limit errors to be infinitely retryable because they are (almost) guaranteed to be resolved after a number of retries.

Copy link

Vercel deployment URL: https://token-metadata-9keos6fr7-hirosystems.vercel.app 🚀

Copy link

codecov bot commented Aug 27, 2024

Codecov Report

Attention: Patch coverage is 53.84615% with 6 lines in your changes missing coverage. Please review.

Files Patch % Lines
...en-processor/stacks-node/stacks-node-rpc-client.ts 42.85% 4 Missing ⚠️
src/token-processor/images/image-cache.ts 0.00% 1 Missing ⚠️
src/token-processor/util/metadata-helpers.ts 0.00% 1 Missing ⚠️

📢 Thoughts on this report? Let us know!

@rafaelcr rafaelcr merged commit 87ad8af into master Aug 27, 2024
8 of 9 checks passed
@rafaelcr rafaelcr deleted the fix/retryable-errors branch August 27, 2024 00:32
blockstack-devops pushed a commit that referenced this pull request Aug 27, 2024
## [1.0.1](v1.0.0...v1.0.1) (2024-08-27)

### Bug Fixes

* demote server connection errors and contract clarity errors to be non-retryable ([#249](#249)) ([87ad8af](87ad8af))
@blockstack-devops
Copy link

🎉 This PR is included in version 1.0.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants