You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Время от времени возникают ошибки, связанные с timeout. Возможно, гейт может делать повторные запросы при таких ошибках? Это ведь проблема на стороне гейта (соединение с биржей), я не ядра. Ошибка не критичная, однако иногдга мешает нормальной работе ядра.
Примечание: timeout в конфигурации был настроен на 100мс, чего должно хватать для запросов. Я изменил на 500мс, чтобы не сталкиваться с проблемой
Sep 29 22:35:43 ip-172-31-22-147 pipenv[407109]: 2022-09-29 22:35:43,762 [407109] DEBUG - flash_gate.exchange.exchanges - Trying to cancel all orders: ['BTC/USDT']
Sep 29 22:35:43 ip-172-31-22-147 pipenv[407109]: 2022-09-29 22:35:43,967 [407109] ERROR - flash_gate.gate.gate - exmo GET https://api.exmo.com/v1.1/payments/providers/crypto/list
Sep 29 22:35:43 ip-172-31-22-147 pipenv[407109]: Traceback (most recent call last):
Sep 29 22:35:43 ip-172-31-22-147 pipenv[407109]: File "/home/ubuntu/.local/share/virtualenvs/flash-gate-lm98JxV3/lib/python3.10/site-packages/ccxt/async_support/base/exchange.py", line 119, in fetch
Sep 29 22:35:43 ip-172-31-22-147 pipenv[407109]: async with session_method(yarl.URL(url, encoded=True),
Sep 29 22:35:43 ip-172-31-22-147 pipenv[407109]: File "/home/ubuntu/.local/share/virtualenvs/flash-gate-lm98JxV3/lib/python3.10/site-packages/aiohttp/client.py", line 1141, in __aenter__
Sep 29 22:35:43 ip-172-31-22-147 pipenv[407109]: self._resp = await self._coro
Sep 29 22:35:43 ip-172-31-22-147 pipenv[407109]: File "/home/ubuntu/.local/share/virtualenvs/flash-gate-lm98JxV3/lib/python3.10/site-packages/aiohttp/client.py", line 560, in _request
Sep 29 22:35:43 ip-172-31-22-147 pipenv[407109]: await resp.start(conn)
Sep 29 22:35:43 ip-172-31-22-147 pipenv[407109]: File "/home/ubuntu/.local/share/virtualenvs/flash-gate-lm98JxV3/lib/python3.10/site-packages/aiohttp/client_reqrep.py", line 894, in start
Sep 29 22:35:43 ip-172-31-22-147 pipenv[407109]: with self._timer:
Sep 29 22:35:43 ip-172-31-22-147 pipenv[407109]: File "/home/ubuntu/.local/share/virtualenvs/flash-gate-lm98JxV3/lib/python3.10/site-packages/aiohttp/helpers.py", line 720, in __exit__
Sep 29 22:35:43 ip-172-31-22-147 pipenv[407109]: raise asyncio.TimeoutError from None
Sep 29 22:35:43 ip-172-31-22-147 pipenv[407109]: asyncio.exceptions.TimeoutError
Sep 29 22:35:43 ip-172-31-22-147 pipenv[407109]: The above exception was the direct cause of the following exception:
Sep 29 22:35:43 ip-172-31-22-147 pipenv[407109]: Traceback (most recent call last):
Sep 29 22:35:43 ip-172-31-22-147 pipenv[407109]: File "/home/ubuntu/flash-gate/flash_gate/gate/gate.py", line 169, in cancel_all_orders
Sep 29 22:35:43 ip-172-31-22-147 pipenv[407109]: await exchange.cancel_all_orders(self.tickers)
Sep 29 22:35:43 ip-172-31-22-147 pipenv[407109]: File "/home/ubuntu/flash-gate/flash_gate/exchange/exchanges.py", line 285, in cancel_all_orders
Sep 29 22:35:43 ip-172-31-22-147 pipenv[407109]: await self._cancel_all_orders(symbols)
Sep 29 22:35:43 ip-172-31-22-147 pipenv[407109]: File "/home/ubuntu/flash-gate/flash_gate/exchange/exchanges.py", line 289, in _cancel_all_orders
Sep 29 22:35:43 ip-172-31-22-147 pipenv[407109]: raw_orders = await self._fetch_raw_open_orders(symbols)
Sep 29 22:35:43 ip-172-31-22-147 pipenv[407109]: File "/home/ubuntu/flash-gate/flash_gate/exchange/exchanges.py", line 297, in _fetch_raw_open_orders
Sep 29 22:35:43 ip-172-31-22-147 pipenv[407109]: orders = await self.exchange.fetch_open_orders(symbol)
Sep 29 22:35:43 ip-172-31-22-147 pipenv[407109]: File "/home/ubuntu/.local/share/virtualenvs/flash-gate-lm98JxV3/lib/python3.10/site-packages/ccxt/async_support/exmo.py", line 1253, in fetch_open_orders
Sep 29 22:35:43 ip-172-31-22-147 pipenv[407109]: await self.load_markets()
Sep 29 22:35:43 ip-172-31-22-147 pipenv[407109]: File "/home/ubuntu/.local/share/virtualenvs/flash-gate-lm98JxV3/lib/python3.10/site-packages/ccxt/async_support/base/exchange.py", line 194, in load_markets
Sep 29 22:35:43 ip-172-31-22-147 pipenv[407109]: raise e
Sep 29 22:35:43 ip-172-31-22-147 pipenv[407109]: File "/home/ubuntu/.local/share/virtualenvs/flash-gate-lm98JxV3/lib/python3.10/site-packages/ccxt/async_support/base/exchange.py", line 190, in load_markets
Sep 29 22:35:43 ip-172-31-22-147 pipenv[407109]: result = await self.markets_loading
Sep 29 22:35:43 ip-172-31-22-147 pipenv[407109]: File "/home/ubuntu/.local/share/virtualenvs/flash-gate-lm98JxV3/lib/python3.10/site-packages/ccxt/async_support/base/exchange.py", line 179, in load_markets_help>
Sep 29 22:35:43 ip-172-31-22-147 pipenv[407109]: currencies = await self.fetch_currencies()
Sep 29 22:35:43 ip-172-31-22-147 pipenv[407109]: File "/home/ubuntu/.local/share/virtualenvs/flash-gate-lm98JxV3/lib/python3.10/site-packages/ccxt/async_support/exmo.py", line 500, in fetch_currencies
Sep 29 22:35:43 ip-172-31-22-147 pipenv[407109]: cryptoList = await self.publicGetPaymentsProvidersCryptoList(params)
Sep 29 22:35:43 ip-172-31-22-147 pipenv[407109]: File "/home/ubuntu/.local/share/virtualenvs/flash-gate-lm98JxV3/lib/python3.10/site-packages/ccxt/async_support/base/exchange.py", line 1125, in request
Sep 29 22:35:43 ip-172-31-22-147 pipenv[407109]: return await self.fetch2(path, api, method, params, headers, body, config, context)
Sep 29 22:35:43 ip-172-31-22-147 pipenv[407109]: File "/home/ubuntu/.local/share/virtualenvs/flash-gate-lm98JxV3/lib/python3.10/site-packages/ccxt/async_support/base/exchange.py", line 1122, in fetch2
Sep 29 22:35:43 ip-172-31-22-147 pipenv[407109]: return await self.fetch(request['url'], request['method'], request['headers'], request['body'])
Sep 29 22:35:43 ip-172-31-22-147 pipenv[407109]: await resp.start(conn)
Sep 29 22:35:43 ip-172-31-22-147 pipenv[407109]: File "/home/ubuntu/.local/share/virtualenvs/flash-gate-lm98JxV3/lib/python3.10/site-packages/aiohttp/client_reqrep.py", line 894, in start
Sep 29 22:35:43 ip-172-31-22-147 pipenv[407109]: with self._timer:
Sep 29 22:35:43 ip-172-31-22-147 pipenv[407109]: File "/home/ubuntu/.local/share/virtualenvs/flash-gate-lm98JxV3/lib/python3.10/site-packages/aiohttp/helpers.py", line 720, in __exit__
Sep 29 22:35:43 ip-172-31-22-147 pipenv[407109]: raise asyncio.TimeoutError from None
Sep 29 22:35:43 ip-172-31-22-147 pipenv[407109]: asyncio.exceptions.TimeoutError
Sep 29 22:35:43 ip-172-31-22-147 pipenv[407109]: The above exception was the direct cause of the following exception:
Sep 29 22:35:43 ip-172-31-22-147 pipenv[407109]: Traceback (most recent call last):
Sep 29 22:35:43 ip-172-31-22-147 pipenv[407109]: File "/home/ubuntu/flash-gate/flash_gate/gate/gate.py", line 169, in cancel_all_orders
Sep 29 22:35:43 ip-172-31-22-147 pipenv[407109]: await exchange.cancel_all_orders(self.tickers)
Sep 29 22:35:43 ip-172-31-22-147 pipenv[407109]: File "/home/ubuntu/flash-gate/flash_gate/exchange/exchanges.py", line 285, in cancel_all_orders
Sep 29 22:35:43 ip-172-31-22-147 pipenv[407109]: await self._cancel_all_orders(symbols)
Sep 29 22:35:43 ip-172-31-22-147 pipenv[407109]: File "/home/ubuntu/flash-gate/flash_gate/exchange/exchanges.py", line 289, in _cancel_all_orders
Sep 29 22:35:43 ip-172-31-22-147 pipenv[407109]: raw_orders = await self._fetch_raw_open_orders(symbols)
Sep 29 22:35:43 ip-172-31-22-147 pipenv[407109]: File "/home/ubuntu/flash-gate/flash_gate/exchange/exchanges.py", line 297, in _fetch_raw_open_orders
Sep 29 22:35:43 ip-172-31-22-147 pipenv[407109]: orders = await self.exchange.fetch_open_orders(symbol)
Sep 29 22:35:43 ip-172-31-22-147 pipenv[407109]: File "/home/ubuntu/.local/share/virtualenvs/flash-gate-lm98JxV3/lib/python3.10/site-packages/ccxt/async_support/exmo.py", line 1253, in fetch_open_orders
Sep 29 22:35:43 ip-172-31-22-147 pipenv[407109]: await self.load_markets()
Sep 29 22:35:43 ip-172-31-22-147 pipenv[407109]: File "/home/ubuntu/.local/share/virtualenvs/flash-gate-lm98JxV3/lib/python3.10/site-packages/ccxt/async_support/base/exchange.py", line 194, in load_markets
Sep 29 22:35:43 ip-172-31-22-147 pipenv[407109]: raise e
Sep 29 22:35:43 ip-172-31-22-147 pipenv[407109]: File "/home/ubuntu/.local/share/virtualenvs/flash-gate-lm98JxV3/lib/python3.10/site-packages/ccxt/async_support/base/exchange.py", line 190, in load_markets
Sep 29 22:35:43 ip-172-31-22-147 pipenv[407109]: result = await self.markets_loading
Sep 29 22:35:43 ip-172-31-22-147 pipenv[407109]: File "/home/ubuntu/.local/share/virtualenvs/flash-gate-lm98JxV3/lib/python3.10/site-packages/ccxt/async_support/base/exchange.py", line 179, in load_markets_help>
Sep 29 22:35:43 ip-172-31-22-147 pipenv[407109]: currencies = await self.fetch_currencies()
Sep 29 22:35:43 ip-172-31-22-147 pipenv[407109]: File "/home/ubuntu/.local/share/virtualenvs/flash-gate-lm98JxV3/lib/python3.10/site-packages/ccxt/async_support/exmo.py", line 500, in fetch_currencies
Sep 29 22:35:43 ip-172-31-22-147 pipenv[407109]: cryptoList = await self.publicGetPaymentsProvidersCryptoList(params)
Sep 29 22:35:43 ip-172-31-22-147 pipenv[407109]: File "/home/ubuntu/.local/share/virtualenvs/flash-gate-lm98JxV3/lib/python3.10/site-packages/ccxt/async_support/base/exchange.py", line 1125, in request
Sep 29 22:35:43 ip-172-31-22-147 pipenv[407109]: return await self.fetch2(path, api, method, params, headers, body, config, context)
Sep 29 22:35:43 ip-172-31-22-147 pipenv[407109]: File "/home/ubuntu/.local/share/virtualenvs/flash-gate-lm98JxV3/lib/python3.10/site-packages/ccxt/async_support/base/exchange.py", line 1122, in fetch2
Sep 29 22:35:43 ip-172-31-22-147 pipenv[407109]: return await self.fetch(request['url'], request['method'], request['headers'], request['body'])
Sep 29 22:35:43 ip-172-31-22-147 pipenv[407109]: File "/home/ubuntu/.local/share/virtualenvs/flash-gate-lm98JxV3/lib/python3.10/site-packages/ccxt/async_support/base/exchange.py", line 153, in fetch
Sep 29 22:35:43 ip-172-31-22-147 pipenv[407109]: raise RequestTimeout(details) from e
Sep 29 22:35:43 ip-172-31-22-147 pipenv[407109]: ccxt.base.errors.RequestTimeout: exmo GET https://api.exmo.com/v1.1/payments/providers/crypto/list
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Время от времени возникают ошибки, связанные с timeout. Возможно, гейт может делать повторные запросы при таких ошибках? Это ведь проблема на стороне гейта (соединение с биржей), я не ядра. Ошибка не критичная, однако иногдга мешает нормальной работе ядра.
Примечание: timeout в конфигурации был настроен на 100мс, чего должно хватать для запросов. Я изменил на 500мс, чтобы не сталкиваться с проблемой
Beta Was this translation helpful? Give feedback.
All reactions