Error While Downloading

367 views
Skip to first unread message

Steven K

unread,
Aug 16, 2013, 7:15:24 PM8/16/13
to tvre...@googlegroups.com
When I press the scan button, I get an "Error While downloading" error that reads "TheTVDB Mirrors: The remote server returned an error: (520) Origin Error."  Not sure what this means, but it appears this software isn't working.  How do I make this software work correctly?

Michael Hurwood

unread,
Aug 21, 2013, 8:01:20 AM8/21/13
to tvre...@googlegroups.com
A quick Google reveals a 520 error is some sort of proxy or other redirection error. Possible TheTVDB themselves were having a bad day. Has the problem gone away?
 
Cheers,
 
Michael

Scott Mikus

unread,
Sep 9, 2014, 8:23:34 PM9/9/14
to tvre...@googlegroups.com
I am getting an error for a couple of days now when i try to scan. It just sticks on downloading : tvdb mirrors. will never download from them and hence i can not update my library. Nothing has changed on my network at home, no dns changes not network hardware changes no OS changes. It simply will not download from the mirrors. Does any one have any input on this issue and is anyone else having this issue? Does anyone know the url that it is trying to download from so that i can make a host entire or create a dns A record or CNAME entire in my domain controller at home? this would help greatly and i will post what i find after skimming through the source code. Any input would be greatly appreciated.

Koko Ki

unread,
Sep 10, 2014, 8:03:54 AM9/10/14
to
I have a similar problem. I didn't change anything (but I have Windows updates on, so maybe the system updated something without me knowing) and now, each time I try to scan, TVRename throws an exception (Error while downloading. TheTVDB Mirrors: An exception occurred during a WebClient request). If I try to add a new show, it doesn't find anything from TheTVDB when I press the search button. I've deleted my settings to start from scratch and it doesn't work, neither. It looks like, suddenly, the program can't connect to TheTVDB.

Could you check if you can add a new tv show (one that isn't in the cache of TVRename)?

Btw, I'm using Windows 7 64 bits and TV Rename 2.2.4.

Thanks for your help!

Things I've tried: Update TVRename (I was using an older version), repair .Net framework, uninstall then install .Net framework, delete all the settings from %APPDATA%\TVRename.

James Dyer

unread,
Sep 11, 2014, 4:47:24 AM9/11/14
to tvre...@googlegroups.com
Last time I had that issue, I had to uninstall TVRename and reinstall it. Might give that a try.

Koko Ki

unread,
Sep 11, 2014, 9:14:38 AM9/11/14
to tvre...@googlegroups.com
Thanks, James, but I've tried that several times and it didn't work. I've done more tests, however: in the same pc, through a virtual machine, I've tried TVRename in a Windows XP. It worked flawlessly.

So, the problem is in my Windows 7 set up. To be honest, I don't think the problem is on TvRename, but in other software: probably the .NET framework or the antivirus (I'm using the latest Avast). I've checked the firewall and everything is fine. My guess is that something has been updated and it broke TvRename or the way it accesses the internet. I have reinstalled everything and I think the only solution would be to reinstall Windows (which I wouldn't like to do :/).

Scott, could you check if you can add a new tv show to your collection? Just try to search for a new one. I can't find any results so if that happens to you too, we both have the same problem. If not, then it's not related.

Scott Mikus

unread,
Sep 11, 2014, 11:22:59 AM9/11/14
to tvre...@googlegroups.com
I can not add tv shows. I get a result of 0 tv shows returned. I am running this on Windows Server 2012 R2. I am having the same problem as Koko with the exception of it being on a different OS. I will try installing it on another computer of mine and trying it to see if it work on a different OS. I will install it on Windows 7 x64 and Windows 8 x64 and get back to ya;l and see what i have found. I have looked through the code and i can see a URL that the software uses but when i try to access it from the browser it loads with no problem. I am using peer block and have the windows firewall disabled. i have a Cisco 1841 router running which has a nat acl (access list) but it is passing port 80 and port 443 with no restrictions and peer block is not blocking the request, neither is the router. I have tried installing it on my other domain controller with the exact same result. Both ser server are running authenticated copies of Windows server 2012 R2, so i dont think that could be an issue. I will install it on the other boxes and let you know exactly what i find.

Scott Mikus

unread,
Sep 11, 2014, 11:23:13 AM9/11/14
to tvre...@googlegroups.com
After installing it on my Windows 7 x64 box, it seems to run fine. But still does not run on my Windows server 2012 R2 boxes. Thats fine i only have 137 tv shows ... that i now have to add to the windows 7 box and change 138 folders for it to search for 137 for the destination of the file and 1 for the search folder. UGH. I cant seem to pin point what is blocking the request. Obviously it is not the router or the network. My DNS servers are working correctly or else the windows 7 box wouldn't resolve it. There has to be a simpler solution than to move all this content in tv rename to another box and use it to transfer over the. I will check windows defender on my windows server 2012 rs boxes and see if it is blocking anything and i will let you know what i find out. i am running Microsoft security essentials on the windows 7 box and that does not seem to be blocking it.

Scott Mikus

unread,
Sep 11, 2014, 11:23:23 AM9/11/14
to tvre...@googlegroups.com
After re installing tvrename the problem is still present. I do not even have windows defender installed on the server.

Koko Ki

unread,
Sep 13, 2014, 1:47:01 PM9/13/14
to tvre...@googlegroups.com
I've done more tests. I've tried the TVRename fork by Michael Hurwood (posted in this forum one year ago) and it doesn't work, either. I've checked the TVRename source and, although I'm not a C# programmer, I think it uses System.Net.WebClient to download the data from the TvDB. My guess is that something broke that functionality in my computer (not just in TVRename), so I've tried to find another C# program which uses WebClient to download something to see if it works in my pc. I went to sourceforge (where you can filter by programming language) and tried SS Youtube Downloader. I couldn't even launch it (it shows a Windows error dialog). In addition to this, my graphic card (an Ati Radeon HD 4870) is starting to have problems (it hangs up from time to time).

I don't know if these things have something to do with our problems, but, to me, it's suspicious. I'm not sure if:
a) Windows Update broke something.
b) My computer is slowly dying (at least, my graphic card).
c) The antivirus, firewall, other software... is borking the TVRename functionality.
d) There is a virus in my PC.
e) All of it.

Just to be on the safe side, I've made a backup of everything. Scott, I'm sorry to say that, after having tried lots of things, the only solution I see is to made a full reinstall of the system.

P.S. If someone out there with the knowledge (and the time) could compile a small c# program that just downloads an url (for example, "http://thetvdb.com/api/GetSeries.php?seriesname=Dexter&language=all") using webclient, we could confirm that the problem is there.

P.P.S. @Scott: About your system blocking the request: I've put a virtual machine (which worked perfectly) inside the pc having the problem. So, the internet connection they were using was exactly the same. I doubt something blocks the host but not the guest. If I were you, seeing you have several machines, what I'd do is to copy the TVRename config files (in Windows 7 they are in %APPDATA%\TVRename\TVRename\2.1, in other Windows the path can't be very different) to a new machine, and then in that new machine, with a text editor, edit the file "TVRenameSettings.xml" and search/replace the old path to the one this machine will use (I hope you understand me, english is not my mother tongue, if not, I'll try to rephrase that).

Scott Mikus

unread,
Sep 14, 2014, 3:17:37 PM9/14/14
to tvre...@googlegroups.com
What software was used to compile this code? I have used visual studio 2010 and it fails, so i am now trying eclipse. We will see how it goes?

Scott Mikus

unread,
Sep 14, 2014, 4:34:41 PM9/14/14
to tvre...@googlegroups.com
I am using Xamarin to compile and debug the code. What i have found is that the software is calling the system.web.dll file from my computer and that is where the code seems to hang, I do not get an error in the debugger it self but that is the file that is not allowing me to make GET requests from the system.net.webclient namespace. I will try to change the URL's that the program calls to and see if that makes any difference, but i wouldn't think that that change would effect anything as my browsers can resolve thetvdb.com and www.thetvdb.com with no problem. If i am able to find a working solution such as replacing system.net.web with system.net.object and public class HttpClient and get it to run on my computer. I will upload the source code and upload a complied version of the exe to my website linking to tvrename's page and share the link to let others try the code. I am not super familiar with c# as i code in Java, C and web languages such as php html5 and css. So it shouldn't be to much of a leap for me to become familiar with C#.  That being said i will get back to you with what i find to try to resolve this issue for all of us. If i find a way to repair the system.web.dll file without changing the code i will describe the process and send links on the way to fix it that way. @Koko if you are going to re-image your pc would you do that and try tvrename again and let me know if that resolves your issue. That is worst case scenario for me as the server that tvrename runs on is a domain controller and would entail mainly hours of dcpromo work as well as DNS cleanup and kerbos delegations renegotiation. Xamarin works beautifully with the tvrename code and has given me no problems. I would suggest that or if someone has a better solution for me to use i would greatly appreciate the input. Please let me know what you find and i will get back and reply to this post as soon as i have more information.

Stephen Ogletree

unread,
Sep 15, 2014, 7:26:20 AM9/15/14
to tvre...@googlegroups.com
Peer block will interfere with TVRename occassionally. You'll see a lot of ocling messages in the peer block interface when TVRename is downloading from tvdb.

I'd strongly recommend not using peer block while trying to access the tvdb API.

Koko Ki

unread,
Sep 16, 2014, 11:58:35 AM9/16/14
to tvre...@googlegroups.com
I use peer block, Stephen. When I saw your post I thought that could be the problem. However, after disabling it, the problem remains. Anyway, it's an interesting advice, thanks.

Scott, yep, I'll format my pc sooner than later, but I don't have too much free time these days, so I would prefer not to install Xamarin, Visual Studio or another sdk to make more tests (I've spent many hours trying to fix this). Maybe readapting the whole TVRename source it's a little bit ambitious if you have never programmed in C# (although it would be very interesting and helpful). Why don't you try to make a small "hello world" program that downloads something using webclient just to see if that reproduces the problem? Then, try to download that using another method and, if that works, apply the fix to the TVRename source. For example, something like the code explained here: http://msdn.microsoft.com/en-gb/library/ez801hhe%28v=vs.110%29.aspx

If you do that kind of program, I can try it in my pc too to see the results.

About finding another fix. One of the solutions I've tried before is to repair the .net 2.0 framework. In Windows 7 (and I guess it would work too in your Windows Server) the way is to run the command "sfc /scannow", that restores corrupted system files. Google it for a better explanation. Maybe that fixes your issue (although it didn't fix mine :/).

Scott Mikus

unread,
Sep 16, 2014, 12:16:28 PM9/16/14
to
I will put together the test and make it available for everyone to test. And the jump to C# wont be that difficult. I have transferred the config of tvrename to the windows 7 box that is working and renamed the .xml file and that is working for now as i thought it would. But this is not a long term solution to the problem. But it will work for now. I will let you know as soon as i complete the test program.

Scott Mikus

unread,
Sep 21, 2014, 8:47:22 PM9/21/14
to tvre...@googlegroups.com
Well i finally figured out what was cause the download error. I had ipv6 enabled on my servers and didn't have ipv6 enabled on my windows 7 computer. I had an improper ipv6 routing protocol enabled on my router that was causing a general failure on the servers. After disabling the ipv6 routing protocol tvrename works now on all my computers. I dont think that will help you but couldn't hurt to verify you ipv6 config on you computer and router.

Edo V

unread,
Sep 29, 2014, 11:40:50 AM9/29/14
to tvre...@googlegroups.com
I second Scott's solution. I disabled the AutoDetect IPv6 setting in my router, rebooted the client PCs, and TVRename started being able to pull TVDB data again. Thanks for the identification of the issue!

Scott Mikus

unread,
Oct 13, 2014, 5:47:46 PM10/13/14
to tvre...@googlegroups.com
I am very surprised that this resolved the issue but im glad to hear that it wasn't just me who this helped solve the issue with tvrename, as i really like the software. This has given me a better understanding of how the software was written. So i will be happy to make some changes to the software if anyone has any updates they would like to see with the software.
Reply all
Reply to author
Forward
0 new messages