Skip to content

Fixup data science logs#113

Merged
Theodus merged 2 commits intomainfrom
theodus/isa-status
Feb 17, 2022
Merged

Fixup data science logs#113
Theodus merged 2 commits intomainfrom
theodus/isa-status

Conversation

@Theodus
Copy link
Member

@Theodus Theodus commented Feb 17, 2022

No description provided.

Copy link

@craigtutterow craigtutterow left a comment

Choose a reason for hiding this comment

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

Thanks Theo!

let parsed_response =
serde_json::from_str::<Response<Box<RawValue>>>(&response.payload).map_err(|_| ())?;
let parsed_response = serde_json::from_str::<Response<Box<RawValue>>>(&response.payload)
.map_err(|_| "invalid indexer response")?;

Choose a reason for hiding this comment

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

Do you want to handle indexing behind errors here as well?

Copy link
Member Author

Choose a reason for hiding this comment

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

"indexing behind" is handled the same, but the message is replaced with "indexer failed to resolve block". Which I think is a bit more clear about what the gateway is responding to

@Theodus Theodus merged commit 28976f2 into main Feb 17, 2022
@Theodus Theodus deleted the theodus/isa-status branch February 17, 2022 22:47
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.

3 participants