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: retry when a contract is not yet found #256

Merged
merged 1 commit into from
Aug 30, 2024
Merged

Conversation

rafaelcr
Copy link
Collaborator

When detecting a new contract or token via chainhook, we do a read-only call to that contract in the Stacks node immediately to get the token's data. However, if that contract is not yet ready for read on the node (NoSuchContract error), we need to try again later.

Copy link

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

Copy link

codecov bot commented Aug 30, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

📢 Thoughts on this report? Let us know!

@rafaelcr rafaelcr merged commit 46d8fc8 into develop Aug 30, 2024
9 checks passed
@rafaelcr rafaelcr deleted the fix/no-contract branch August 30, 2024 18:43
blockstack-devops pushed a commit that referenced this pull request Aug 30, 2024
## [1.1.0](v1.0.3...v1.1.0) (2024-08-30)

### Features

* add configurable delay for retrying jobs ([#257](#257)) ([20d753a](20d753a))

### Bug Fixes

* add chain tip etag generator ([#255](#255)) ([2b993cd](2b993cd))
* retry when a contract is not yet found ([#256](#256)) ([46d8fc8](46d8fc8))
@blockstack-devops
Copy link

🎉 This PR is included in version 1.1.0 🎉

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.

3 participants