Skip to content

Two minor fixes #13

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

Merged
merged 2 commits into from
Oct 14, 2020
Merged

Two minor fixes #13

merged 2 commits into from
Oct 14, 2020

Conversation

jgriffiths
Copy link
Contributor

  • Remove an unneeded self-include
  • Handle servers that return un-structured errors (see commit verbiage for details)

Some servers return errors in a non-v1.1+ compliant manner, as text.
An example in the wild is electrs (https://github.com/romanz/electrs).

This behaviour was apparently common in pre-v1.1 servers, and since it
is easy to support, throw the error with its text so the caller at least
gets some error context rather than "invalid server response".
@cinemast cinemast merged commit c026942 into jsonrpcx:master Oct 14, 2020
@cinemast
Copy link
Contributor

Thanks a lot!

@jgriffiths jgriffiths deleted the misc branch October 14, 2020 07:37
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.

2 participants