Skip to content

Fixed BitfinexRestMessageHandler error parsing#189

Merged
JKorf merged 1 commit intoJKorf:masterfrom
nils2525:feature/ErrorParsingFix
Mar 26, 2026
Merged

Fixed BitfinexRestMessageHandler error parsing#189
JKorf merged 1 commit intoJKorf:masterfrom
nils2525:feature/ErrorParsingFix

Conversation

@nils2525
Copy link
Copy Markdown
Contributor

Improved the error handling. The error != null condition on line 42 conflicted with the one on line 28, preventing line 43 from ever being executed.
As a result, the following error message was never parsed correctly (ErrorInfo.Unknown was always returned instead):

{
  "code": 503,
  "error": "temporarily_unavailable",
  "error_description": "Sorry, the service is temporarily unavailable. See https://www.bitfinex.com/ for more info."
}

@JKorf JKorf merged commit 100dd54 into JKorf:master Mar 26, 2026
1 check passed
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