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

Handle AccountDoesNotExistsException on worker init #757

Open
bitphage opened this issue Apr 4, 2020 · 0 comments
Open

Handle AccountDoesNotExistsException on worker init #757

bitphage opened this issue Apr 4, 2020 · 0 comments
Labels
component: strategy primitives StrategyBase, BitsharesOrderEngine, BitsharesPriceFeed [3] Type: Enhancement

Comments

@bitphage
Copy link
Collaborator

bitphage commented Apr 4, 2020

Reported on telegram. Dexbot was used with OL node and it was in some error state, so it failed to return account data on Account(self.worker["account"], full=True, bitshares_instance=self.bitshares).

Suggestion is to try to reconnect to another node before giving up.

Traceback (most recent call last):
  File "/opt/DEXBot/dexbot/worker.py", line 74, in init_workers
    config=config, name=worker_name, bitshares_instance=self.bitshares, view=self.view
  File "/opt/DEXBot/dexbot/strategies/staggered_orders.py", line 26, in init
    super().init(*args, **kwargs)
  File "/opt/DEXBot/dexbot/strategies/base.py", line 153, in init
    self._account = Account(self.worker["account"], full=True, bitshares_instance=self.bitshares)
  File "/usr/local/lib/python3.6/dist-packages/graphenecommon/instance.py", line 36, in init
    cls.init(self, *args, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/graphenecommon/account.py", line 49, in init
    BlockchainObject.init(self, *args, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/graphenecommon/blockchainobject.py", line 270, in init
    self.refresh()
  File "/usr/local/lib/python3.6/dist-packages/graphenecommon/account.py", line 61, in refresh
    raise AccountDoesNotExistsException(self.identifier)
graphenecommon.exceptions.AccountDoesNotExistsException
@bitphage bitphage added [3] Type: Enhancement component: strategy primitives StrategyBase, BitsharesOrderEngine, BitsharesPriceFeed labels Apr 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: strategy primitives StrategyBase, BitsharesOrderEngine, BitsharesPriceFeed [3] Type: Enhancement
Projects
None yet
Development

No branches or pull requests

1 participant