anacrolix / torrent

Full-featured BitTorrent client package and utilities
Mozilla Public License 2.0
5.39k stars 615 forks source link

Supported tracker urls #842

Closed MaximKiselev closed 1 year ago

MaximKiselev commented 1 year ago

hi, i got error.github.com/anacrolix/torrent.(*Torrent).startScrapingTracker:1610]: error parsing tracker url what is that mean? i added wrong retrackers url or what? i used udp and http trackers with ip/name addreses and different ports. also i used ipv6. i checked. the trackers parsed via go net/url. Did you test different types of tracker url (like http://[ipv6]:9997) and etc? thanks

anacrolix commented 1 year ago

Thanks for the report. That line of code neglects to log the actual error, I'll post a fix shortly.

anacrolix commented 1 year ago

Could you try again with https://github.com/anacrolix/torrent/commit/3901c3144bba7445c77465709e450db0f74f7ad8? It will log more information about why it's failing.

MaximKiselev commented 1 year ago

hi, i will try to check. also i attach file trackers.txt

anacrolix commented 1 year ago

I believe the revision I referred to will identify the issue. I don't see anything in the attached file that looks incorrect, at a glance.

anacrolix commented 1 year ago

@MaximKiselev any update on this?

MaximKiselev commented 1 year ago

hi, man. thanks a lot. i rebuilded lib locally. the problem was in symbols of url address. some lines have cr symbol and external tool(binary) shows only upper error but not for all trackers(and i thought that problem is not in formatting). i did live test - no any error for all trackers

anacrolix commented 1 year ago

Thanks!