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

[client] Verbose Response Type Error #188

Merged
merged 3 commits into from
Oct 15, 2020

Conversation

patrick-ogrady
Copy link
Contributor

The client package returns an extremely unhelpful error when a Rosetta API implementation returns a non-JSON response:

Error: unable to fetch block 642926: request failed: /block {“index”:642926} undefined response type: unable to sync to 23786798: unable to sync to 23786798

This PR ensures the client prints a verbose error when the response type is not supported.

@heimdall-asguard
Copy link

If Heimdall is stuck, please click the following link: https://heimdall-public.cbhq.net/v1/pull_request/stuck?pr_number=188&repository=coinbase/rosetta-sdk-go

@coveralls
Copy link

Pull Request Test Coverage Report for Build 9000

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 78.614%

Totals Coverage Status
Change from base Build 8970: 0.0%
Covered Lines: 6683
Relevant Lines: 8501

💛 - Coveralls

@patrick-ogrady patrick-ogrady merged commit 0605285 into master Oct 15, 2020
@patrick-ogrady patrick-ogrady deleted the patrick/verbose-client-error branch October 15, 2020 16:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants