pytr: Error messages with dl_docs
Hi! First of all, thanks for all the work you put into this project and for sharing it here! High appreciated!
When I saw you updated it with a fix for the dl_docs problems, I went right ahead and downloaded everything from my TR-Acc. I downloaded a total of 100s of documents and while scrolling through the lines to see if everything worked smoothy, I noticed some “error-line”, like such (maybe like 15 or so in total out of 100s of downloads):
13:41:17 2XX/9XX: Kauf StockA -- Di. 18.06. um 16:43 Uhr (Europe/Berlin) Received error message: '546 E {"errors":[{"errorCode":"BAD_REQUEST","errorField":null,"errorMessage":"Bad Request","meta":{"source":"PLATFORM"}}]}' 13:41:17 ('546', {'type': 'timelineDetail', 'id': '8g56243-6casd-1fff-22b8-034ed40e4d1c'}, {'errors': [{'errorCode': 'BAD_REQUEST', 'errorField': None, 'errorMessage': 'Bad Request', 'meta': {'source': 'PLATFORM'}}]})
I reran the command several times and the errors showed up in exactly the same lines every time.
Any idea what the problem might be? Just wanted to share it also to contribute as best as I can here by at least reporting what I found.
Cheers!
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 1
- Comments: 25 (7 by maintainers)
As I said it is not really fixed. It just ignores the errors for now
Correction: For some reason after the 3rd try it worked
Still gave me
(None, 'UTF-8').I even did
export LANG=en_US.UTF-8in zsh terminal, which gave meLANG="en_US.UTF-8"when typinglocale. But even after this,LANG=en_US pytr dl_docs PATHor simplypytr dl_docs PATHgave the sameAttributeErrorlike before.Thank you! I tried
LC_CTYPE="en_US.UTF-8" pytr dl_docsand it worked flawlessly (with pytr v0.1.1 )!Awesome. Now it works without setting/changing the language. Thanks for the fast version update!
I think some LC_ variable needs to be set but never mind, I implemented a fallback fix in https://github.com/marzzzello/pytr/commit/5264843751ad5c8465351c9f3422b00643891496 and released a new version (0.1.2)
What does the following return:
You could also try:
LC_CTYPE="en_GB.UTF-8" pytr dl_docsbecause LC_CTYPE overwrites LANG
errors do not lead to a stop of the script but I am still not able to do a dl_docs. After two errors it hangs and nothing happens and no files are being downloaded…