Skip to content
This repository has been archived by the owner on Feb 15, 2022. It is now read-only.

Different Bittrex error (#659) #715

Merged
merged 2 commits into from
Nov 16, 2017
Merged

Conversation

KryptoNova
Copy link
Contributor

This fix should handle any error that happens and then fire's off a retry. I tried the Try .. Catch block on fiddle and it worked flawlessly to capture the error in question.

I'm not sure how to exactly test the retry, but I created the statement similar to the one on line 78. This technically should be recoverable, because Bittrex is just having some sort of hiccup on their API sending data.

I would say this would close #659, but time will ultimately tell.

This fix should handle any error that happens and then fire's off a retry.  I tried the Try .. Catch block on fiddle and it worked flawlessly to capture the error in question.

I'm not sure how to exactly test the retry, but I created the statement similar to the one on line 78.  This technically should be recoverable, because Bittrex is just having some sort of hiccup on their API sending data.
Copy link
Owner

@DeviaVir DeviaVir left a comment

Choose a reason for hiding this comment

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

👍

@DeviaVir DeviaVir merged commit 1f9083b into DeviaVir:master Nov 16, 2017
@ljankok
Copy link
Contributor

ljankok commented Nov 17, 2017

Unfortunately the issue is still there.

bittrex

@KryptoNova
Copy link
Contributor Author

@ljankok , could it be that you have the version that I first committed? I found that using the typeof in the if did not work properly. I had to convert it to a Try...Catch statement to get this one and work around it.

I was just running it today and it happened. It seems to have worked for me.
image

If you are comfortable reviewing the code. Take a look at exchange.js in the bittrex folder. On line 85 you should see a try statement instead of an if statement. If you see an if, then you have the first attempt at trying to get this to work properly.

Please let us know if it is a try instead of an if. It is hard to duplicate this due to the nature of the occurance. So it has to be dealt with in the wild and I will try to come up with Plan C at this point.

@ljankok
Copy link
Contributor

ljankok commented Nov 18, 2017

After I have started zenbot again I can also confirm that the fix is working.

I reviewed the code and your catch statement indeed looks like the type of exception which is needed.

bittrex-fix

@KryptoNova KryptoNova deleted the patch-3 branch November 18, 2017 01:38
KryptoNova added a commit to KryptoNova/zenbot that referenced this pull request Nov 18, 2017
Cleaned up the error message so that the console.log is gone and rely on the retry error message instead.
DeviaVir pushed a commit that referenced this pull request Nov 18, 2017
* Correction for Incorrect Volume in Bittrex

* Cleanup error message (#715)

Cleaned up the error message so that the console.log is gone and rely on the retry error message instead.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants