bittrex timeout prevents startup?
Open
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 7.2k
- Forks
- 493
- PR merge metrics
- No merged PRs in 30d
Description
2022-12-14 07:10:14,467 WARNING lbry.extras.daemon.exchange_rate_manager:86: Timed out fetching exchange rate from Bittrex.
2022-12-14 07:20:20,468 WARNING lbry.extras.daemon.exchange_rate_manager:86: Timed out fetching exchange rate from CoinEx.
2022-12-14 07:20:20,469 WARNING lbry.extras.daemon.exchange_rate_manager:86: Timed out fetching exchange rate from CoinEx.
2022-12-14 07:24:23,467 WARNING lbry.extras.daemon.exchange_rate_manager:86: Timed out fetching exchange rate from Bittrex.
2022-12-14 07:26:24,467 WARNING lbry.extras.daemon.exchange_rate_manager:86: Timed out fetching exchange rate from Bittrex.
2022-12-14 07:30:49,131 WARNING lbry.extras.daemon.exchange_rate_manager:94: Error trying to connect to exchange rate CoinEx: Cannot connect to host api.coinex.com:443 ssl:default [Temporary failure in name resolution]
2022-12-14 07:30:49,147 WARNING lbry.extras.daemon.exchange_rate_manager:94: Error trying to connect to exchange rate CoinEx: Cannot connect to host api.coinex.com:443 ssl:default [Temporary failure in name resolution]
2022-12-14 07:34:51,872 WARNING lbry.extras.daemon.exchange_rate_manager:94: Error trying to connect to exchange rate Bittrex: Cannot connect to host api.bittrex.com:443 ssl:default [Temporary failure in name resolution]
2022-12-14 07:43:00,467 WARNING lbry.extras.daemon.exchange_rate_manager:86: Timed out fetching exchange rate from Bittrex.
2022-12-14 07:46:53,468 WARNING lbry.extras.daemon.exchange_rate_manager:86: Timed out fetching exchange rate from CoinEx.
2022-12-14 07:46:53,468 WARNING lbry.extras.daemon.exchange_rate_manager:86: Timed out fetching exchange rate from CoinEx.
2022-12-14 07:48:51,468 WARNING lbry.extras.daemon.exchange_rate_manager:86: Timed out fetching exchange rate from Bittrex.
2022-12-14 21:30:45,749 ERROR lbry.extras.daemon.exchange_rate_manager:96: Exchange rate error (USDLBC from Bittrex):
Traceback (most recent call last):
File "lbry/extras/daemon/exchange_rate_manager.py", line 77, in get_rate
File "lbry/extras/daemon/exchange_rate_manager.py", line 125, in get_rate_from_response
ZeroDivisionError: float division by zero```
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in lbry/extras/daemon/exchange_rate_manager.py, especially get_rate at line 77 and get_rate_from_response at line 125, using the reported Bittrex and CoinEx timeout logs as the reproduction context. Determine whether exchange-rate failures can affect startup and whether the zero-division path is handled; done means the failure behavior is reliable and covered by an appropriate regression test.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- api, backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 28/100