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

Authenticated calls occasionally return "NO_API_RESPONSE" #151

Open
yidkato opened this issue Apr 19, 2018 · 6 comments
Open

Authenticated calls occasionally return "NO_API_RESPONSE" #151

yidkato opened this issue Apr 19, 2018 · 6 comments

Comments

@yidkato
Copy link

yidkato commented Apr 19, 2018

This issue was brought up a while ago but closed with no followup.

I'm using this to get the balance after creating an authenticated object:
balance = bittrex.get_balance(currency='BTC')['result']['Balance']

When I make the call, I occasionally get the response
{'result': None, 'message': 'NO_API_RESPONSE', 'success': False}

This happens about 5% of the time. It successfully returns the balance most of the time. First I thought it was a rate limit issue, so I tried waiting about 15 seconds before making each call, but it still runs into the error. This also happens sometimes (though less often) when I try other calls, like getting ask price for a market.

Can anybody provide some insight?

@hamkline
Copy link

hamkline commented May 5, 2018

Probably an issue with 2.0, older versions won't give me 'NO_API_RESPONSE'

@yidkato
Copy link
Author

yidkato commented May 6, 2018

I'm using v1.1 though

@shazrat
Copy link

shazrat commented May 11, 2018

I'm seeing this as well. I couldn't find an answer so I'm just writing my code to retry if this happens.

@Jwdev-wr
Copy link
Contributor

Ya I have been assuming this is a failure on bittrex to send back the correct data on an API call. It is especially bad when you place an order and get back the NO API RESPONSE but the order goes through.

I have had to account for this, and I honestly still think it is their API. I am no in the transition their websockets but sometimes those close on me for no reason either.

@shazrat
Copy link

shazrat commented May 20, 2018

It is especially bad when you place an order and get back the NO API RESPONSE but the order goes through.

Wow, I forgot that is a potential case. Very unfortunate that such an issue exists.

@balint77
Copy link

I have the same issue with v1.1. Even trade feedback is missing sometimes.

I think one issue is that the python-bittrex just silently swallows what is the real error in bittrex.py/_api_query:
...
except Exception:
return {
'success': False,
'message': 'NO_API_RESPONSE',
'result': None
}

If I add some extra details the real exception in the background is:
HTTPSConnectionPool(host='bittrex.com', port=443): Read timed out. (read timeout=10)

So look like Bittrex is not answering at least in this one case.

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

No branches or pull requests

5 participants