Skip to content

Fix to non 200 error code replies#81

Closed
E-D-A wants to merge 1 commit intosteemit:masterfrom
E-D-A:E-D-A-patch-2
Closed

Fix to non 200 error code replies#81
E-D-A wants to merge 1 commit intosteemit:masterfrom
E-D-A:E-D-A-patch-2

Conversation

@E-D-A
Copy link
Copy Markdown
Contributor

@E-D-A E-D-A commented Oct 13, 2017

Proposal to implement similar error checking logic when a non 200 error code is received. This will reduce/avoid empty responses.
In the current state, there is a loop to infinity condition when using the Steemd function "get_blocks" if the active RPC node persistently returns a non 200 error code.

For many other functions performing an API call, this should reduce the number of exceptions thrown due to empty responses.

Please review.
Have seen no negative effects in my tests so far.

Proposal to implement similar error checking logic when a non 200 error code is received. This will reduce/avoid empty responses.
In the current state, there is a loop to infinity condition when using the Steemd function "get_blocks" if the active RPC node persistently returns a non 200 error code. 

For many other functions performing an API call, this should reduce the number of exceptions thrown due to empty responses.

Please review. 
Have seen no negative effects in my tests so far.
@bennierex
Copy link
Copy Markdown

Yes, this was giving me headaches, so I have been creating my own work-around. Would be great if this could be merged in with #95 as well.

@roadscape
Copy link
Copy Markdown
Contributor

This is implemented in #202

@roadscape roadscape closed this Apr 3, 2018
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.

5 participants