eliasson/pieces

Download error occured,help wanted

13eholder opened this issue · 0 comments

Dear eliasson:

I have recently been learning how to implement a P2P client through your blog and GitHub repo. However, I encountered numerous network issues when testing the downloads. I have browsed through many answers on Stack Overflow and even used ChatGPT, but none of them resolved the issue. So, I cloned your code and attempted to download the 'ubuntu' file in the 'tests' directory. Unfortunately, I faced the same problems. During the file download process, I encountered the following error messages:

1. ConnectionError: Unable to connect to tracker: status code 502
2. ConnectionError: Unable to connect to tracker: d14:failure reason63:Requested download is not authorized for use with this tracker.e
3. OSError: [WinError 121] The timeout for the semaphore has expired.
4. async for message in PeerStreamIterator(self.reader, buffer):
    TypeError: 'async for' received an object from __aiter__ that does not implement __anext__: coroutine

Have you encountered such an issue while implementing it? If you have, how did you resolve it? I would greatly appreciate any insights you can provide.

English is not my native language, if there is any offsen,please forgive me.