-
-
Notifications
You must be signed in to change notification settings - Fork 88
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
Problem with Download for all documents without using last_days #109
Comments
Hi there! I've got the same problem. pytr dl_docs --last_days XXXX TR_Docs works fine for 1194 days. I opened my TR account about 1670 days ago. These messages are just looping. Just the timeline activity log is counting upwards: 19:14:31 Received #26 timeline activity log |
@jckruse Please check with todays release. Should be fixed |
Description of the bug
While using the following prompt everything works fine:
pytr dl_docs --last_days 360 TR_Docs
But if I wanted to download all documents without using the last_days parameter the terminal output shows the following lines:
17:17:27 Subscribing #22797 timeline transactions
17:17:27 Received error message: '22797 E {"errors":[{"errorCode":"UNKNOWN_ERROR","errorField":null,"errorMessage":"Unknown error","meta":{"source":"PLATFORM"}}]}'
17:17:27 ('22797', {'type': 'timelineTransactions', 'after': '1856f415-09cb-41d4-9cde-5c0b22177b4c'}, {'errors': [{'errorCode': 'UNKNOWN_ERROR', 'errorField': None, 'errorMessage': 'Unknown error', 'meta': {'source': 'PLATFORM'}}]})
17:17:27 Received #22797 timeline transactions
17:17:27 Subscribing #22798 timeline transactions
17:17:27 Received error message: '22798 E {"errors":[{"errorCode":"UNKNOWN_ERROR","errorField":null,"errorMessage":"Unknown error","meta":{"source":"PLATFORM"}}]}'
17:17:27 ('22798', {'type': 'timelineTransactions', 'after': '1856f415-09cb-41d4-9cde-5c0b22177b4c'}, {'errors': [{'errorCode': 'UNKNOWN_ERROR', 'errorField': None, 'errorMessage': 'Unknown error', 'meta': {'source': 'PLATFORM'}}]})
17:17:27 Received #22798 timeline transactions
17:17:27 Subscribing #22799 timeline transactions
17:17:27 Received error message: '22799 E {"errors":[{"errorCode":"UNKNOWN_ERROR","errorField":null,"errorMessage":"Unknown error","meta":{"source":"PLATFORM"}}]}'
17:17:27 ('22799', {'type': 'timelineTransactions', 'after': '1856f415-09cb-41d4-9cde-5c0b22177b4c'}, {'errors': [{'errorCode': 'UNKNOWN_ERROR', 'errorField': None, 'errorMessage': 'Unknown error', 'meta': {'source': 'PLATFORM'}}]})
17:17:27 Received #22799 timeline transactions
17:17:27 Subscribing #22800 timeline transactions
After canceling with Strg+C and confirming with Y I get:
Task was destroyed but it is pending!
task: <Task pending name='Task-3' coro=<WebSocketCommonProtocol.keepalive_ping() running at C:\Users\jkr\pipx\venvs\pytr\Lib\site-packages\websockets\legacy\protocol.py:1254> wait_for=>
Task was destroyed but it is pending!
task: <Task pending name='Task-2' coro=<WebSocketCommonProtocol.transfer_data() running at C:\Users\jkr\pipx\venvs\pytr\Lib\site-packages\websockets\legacy\protocol.py:963> wait_for= cb=[Task.task_wakeup(), _wait.._on_completion() at C:\Program Files\Python312\Lib\asyncio\tasks.py:534]>
Task was destroyed but it is pending!
task: <Task pending name='Task-4' coro=<WebSocketCommonProtocol.close_connection() running at C:\Users\jkr\pipx\venvs\pytr\Lib\site-packages\websockets\legacy\protocol.py:1301> wait_for=<Task pending name='Task-2' coro=<WebSocketCommonProtocol.transfer_data() running at C:\Users\jkr\pipx\venvs\pytr\Lib\site-packages\websockets\legacy\protocol.py:963> wait_for= cb=[Task.task_wakeup(), _wait.._on_completion() at C:\Program Files\Python312\Lib\asyncio\tasks.py:534]>>
Exception ignored in: <coroutine object WebSocketCommonProtocol.close_connection at 0x000001FDF0BB1630>
Traceback (most recent call last):
File "C:\Users\jkr\pipx\venvs\pytr\Lib\site-packages\websockets\legacy\protocol.py", line 1337, in close_connection
File "C:\Users\jkr\pipx\venvs\pytr\Lib\site-packages\websockets\legacy\protocol.py", line 1355, in close_transport
File "C:\Users\jkr\pipx\venvs\pytr\Lib\site-packages\websockets\legacy\protocol.py", line 1379, in wait_for_connection_lost
File "C:\Program Files\Python312\Lib\asyncio\timeouts.py", line 145, in timeout
RuntimeError: no running event loop
Do you have any ideas, how to handle this bug
The text was updated successfully, but these errors were encountered: