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
Sometimes when there's a network connection issue between the Anchor and horizon, the watch_transaction script crashes due to an exception:
File "/usr/lib/python3.10/asyncio/base_events.py", line 646, in run_until_complete
return future.result()
File "/home/app/.venv/lib/python3.10/site-packages/polaris/management/commands/watch_transactions.py", line 77, in watch_transactions
await asyncio.gather(
File "/home/app/.venv/lib/python3.10/site-packages/polaris/management/commands/watch_transactions.py", line 117, in _for_account
async for response in endpoint.stream():
File "/home/app/.venv/lib/python3.10/site-packages/typeguard/__init__.py", line 954, in asend
value = await self.__wrapped.asend(obj)
File "/home/app/.venv/lib/python3.10/site-packages/stellar_sdk/call_builder/call_builder_async/base_call_builder.py", line 69, in stream
yield await stream.__anext__()
File "/home/app/.venv/lib/python3.10/site-packages/typeguard/__init__.py", line 954, in asend
value = await self.__wrapped.asend(obj)
File "/home/app/.venv/lib/python3.10/site-packages/stellar_sdk/client/aiohttp_client.py", line 217, in stream
raise StreamClientError(
stellar_sdk.exceptions.StreamClientError: Failed to get stream message.
But once watch_transaction crashes, it doesn't start automatically and requires manual intervention. At the moment the Anchor has to setup some kind of watcher to restart the script automatically, but this is not ideal, Anchor should not need to worry about this.
Polaris should handle those network crashes gracefully by either restarting the stream automatically.
The text was updated successfully, but these errors were encountered:
Sometimes when there's a network connection issue between the Anchor and horizon, the
watch_transaction
script crashes due to an exception:But once
watch_transaction
crashes, it doesn't start automatically and requires manual intervention. At the moment the Anchor has to setup some kind of watcher to restart the script automatically, but this is not ideal, Anchor should not need to worry about this.Polaris should handle those network crashes gracefully by either restarting the stream automatically.
The text was updated successfully, but these errors were encountered: