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

pytr dl_docs is throwing error and cannot complete #3

Closed
somebody-somewhere-over-the-rainbow opened this issue Aug 2, 2021 · 5 comments
Labels
bug Something isn't working

Comments

@somebody-somewhere-over-the-rainbow

I tried running pytr today again to download my latest documents but I repeatedly get the following error message:

Received error message: '27 E {"errors":[{"errorCode":"UNKNOWN_ERROR","errorField":null,"errorMessage":"Unknown error","meta":{"source":"PLATFORM"}}]}'
Traceback (most recent call last):
  File "/home/alex/.local/bin/pytr", line 8, in <module>
    sys.exit(main())
  File "/home/alex/.local/lib/python3.8/site-packages/pytr/main.py", line 135, in main
    asyncio.get_event_loop().run_until_complete(dl.dl_loop())
  File "/usr/lib/python3.8/asyncio/base_events.py", line 616, in run_until_complete
    return future.result()
  File "/home/alex/.local/lib/python3.8/site-packages/pytr/dl.py", line 28, in dl_loop
    _subscription_id, subscription, response = await self.tr.recv()
  File "/home/alex/.local/lib/python3.8/site-packages/pytr/api.py", line 246, in recv
    raise TradeRepublicError(subscription_id, subscription, payload)
pytr.api.TradeRepublicError: ('27', {'type': 'timelineDetail', 'id': '97ab309c-3101-45da-98f7-36d92172e041'}, {'errors': [{'errorCode': 'UNKNOWN_ERROR', 'errorField': None, 'errorMessage': 'Unknown error', 'meta': {'source': 'PLATFORM'}}]})
@fsdjfhadflkjhsd
Copy link

I just had the same problem. Looks like TR changed something.

@nPyRoX
Copy link

nPyRoX commented Aug 7, 2021

Unfortunately, I am receiving the same problem :-(

@ffeldmann
Copy link

ffeldmann commented Aug 7, 2021

My guess is that the header: _default_headers = {"User-Agent": "TradeRepublic/Android 24/App Version 1.1.2875"} is somehow outdated and needs an update. I do not know which Android Version/iOS can be used here, anyone an idea how to retrieve it?

@marzzzello
Copy link
Collaborator

marzzzello commented Aug 9, 2021

It is not the user agent header but I updated it anyway.
I published a new version which will not fail at this error but it is not really fixed yet.
With the new version it is also possible to modify the filenames (see pytr dl_docs -h)
Closed for now (reopen if there are still problems)

@fsdjfhadflkjhsd
Copy link

fsdjfhadflkjhsd commented Aug 9, 2021

It is not the user agent header but I updated it anyway.
I published a new version which will not fail at this error but it is not really fixed yet.
With the new version it is also possible to modify the filenames (see pytr dl_docs -h)
Closed for now (reopen if there are still problems)

Thanks a lot! I just tested it and so far the download worked like a charm.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants