Closed Johannes0941 closed 2 years ago
UPDATE: After multiple execution of the command the download of all documents is successfull, however this took about 5 iterations. However I don´t think that it is an error in the code but rather a problem of the API of Trade Republic maybe. Maybe you have more thougts on that, otherwise it can be closed.
Mh maybe there are too many parallel tcp connections.
Which version do you use?
Can you run the script in debug mode? pytr -v debug dl_docs...
Or you wait until I have implemented some better error handling
@Johannes0941 I added a new option --workers
. The default value was 8. Maybe a lower value helps for you. Also it will not fail anymore but log a error and continue
I used the version available 2 days ago. I created a new empty folder now and downloaded the documents in debug mode -> no error deleted all the documents and ran without debug mode -> also no error anymore So I wasnt´t able to reproduce the error or determine, if it was some specific document, probably my computer/ internet connection had some problems that day.
Also your Package is linked in the Parquet community forum, maybe more people there who can benefit from the package :) https://community.parqet.com/c/knowledge/trade-republic-abrechnungen-automatisiert
Description of the bug While trying to download the documents with dl_docs the code stops in the middle
To Reproduce Hard to describe, as it is probably user dependent, my guess would be, that the pytr package might not support options trading and it canceled at the first of these documents. Maybe a better error handling strategy would be to to skip these documents and then name all skipped documents at the end of code execution
Error log
Maybe one way to solve this is if you could tell me one line of code, where I could insert a print, to know after which iteration the code stops. Connection during code execution was always good, so I can´t imagine that to be the problem.
Thank you for your help and the very promising tool!