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

jormungandr: Fix "Blockchain tip not set in REST context" #1681

Merged
merged 1 commit into from
May 22, 2020

Conversation

rvl
Copy link
Contributor

@rvl rvl commented May 22, 2020

Issue Number

Resolves #1647
Resolves #1649

Overview

Jormungandr seems to have changed the HTTP response status code for bootstrap again. This will fix the resulting error, in such a way that if the status code changes back to 503, things will still work.

Comments

It may be better to poll the /api/v0/node/stats, but that would be a substantially bigger code change.

Tested with:

cardano-wallet-jormungandr launch --port 8090 --genesis-block-hash 8e4d2a343f3dcf9330ad9035b3e8d168e6728904262f2c434a4f8f934ec7b676 --state-dir ../blockchains/state-itn_rewards_v1.2020-05-06 -- --config itn_rewards_v1-config.yaml

Jormungandr seems to have changed the HTTP response status code for
bootstrap again. This will fix the resulting error, in such a way that
if the status code changes back to 503, things will still work.

Resolves #1647
@rvl rvl requested a review from piotr-iohk May 22, 2020 09:03
@rvl rvl self-assigned this May 22, 2020
Copy link
Member

@KtorZ KtorZ left a comment

Choose a reason for hiding this comment

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

Arf.

@KtorZ
Copy link
Member

KtorZ commented May 22, 2020

Nice catch.

Copy link
Contributor

@piotr-iohk piotr-iohk left a comment

Choose a reason for hiding this comment

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

🎉

@piotr-iohk
Copy link
Contributor

bors r+

@iohk-bors
Copy link
Contributor

iohk-bors bot commented May 22, 2020

@iohk-bors iohk-bors bot merged commit 6a23e94 into master May 22, 2020
@iohk-bors iohk-bors bot deleted the rvl/1647/handle-bootstrap-tip branch May 22, 2020 10:46
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.

DB migration tests failing intermittently Blockchain tip not set in REST context
3 participants