question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

pytr dl_docs is throwing error and cannot complete

See original GitHub issue

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'}}]})

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:3
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

8reactions
marzzzellocommented, 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)

1reaction
fsdjfhadflkjhsdcommented, 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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error "Tableau Server cannot complete the operation because ...
Tableau Server cannot complete the operation because the repository is not available. Wait a few minutes and then try to publish again. "org....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found