-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The Comic Vine online database cannot be reached on Windows 7 or 8 #492
Comments
I just checked and the Comic Vine API (the online database) is currently online and working for me. I has been known to go down for a few hours every now and then, which might have caused your problem accessing it. Try it again, if it is still not working for you, odds are good that you have some kind of networking issue/firewall setting on your computer that is stopping programs like the Comic Vine Scraper from accessing the ComicVine API, which is located here: https://comicvine.gamespot.com/api/ |
Thanks for the answer. The problem has been going on for two days now. Firewall checked first of all, there is access to the site comicvine, API status "Current API Usage You have no current rate limits. Go forth and query." |
Hmm, you could try running the scraper, and when you get the error dialog, press Ctrl-Shift-L (or maybe Ctrl-Alt-L, or just Ctrl-L, I can't remember exactly.) It should let you save out a text file with a log of your scraping session. The end of that log may provide a clue as to why you can't reach the database. |
I've got the same problem, and Comicvine says I'm not limited in any way. None of the shortcuts produce any log of any kind anywhere. |
I just checked my notes, it is definitely Ctrl-Shift-L, make sure when you press it that the scraper has the "keyboard focus" (just click somewhere on the error dialog before you press Ctrl-Shift-L, and it should pop up a dialog to let you save a file, which contains the log. |
Works again, no errors. Thanks for the help |
Glad to hear it. |
It again doesn't work, for at least the last three days. |
I checked it this morning and again tonight, and everything seems to be working ok for me. If you are still unable to connect, there may be something about your computer or network setup that is blocking the scraper's access to the ComicVine API. The most common culprit is a firewall setting that you may have turned on by accident. You could try temporarily disabling your firewall to see if that helps... |
There's no firewall (unless there's something weird going on at the ISP level), and I haven't changed anything. Strangely enough, for one of the scrapes, I got in the volume select dialogue, but only for one specific file. For those files that have a volume/issue ID, the progress bar goes one step in the middle before showing me the error message, for others it doesn't. The API key also isn't limited. |
Can you try to get the error, and then press Ctrl-Shift-L while the scraper dialog has focus? It should offer you a chance to save an error log, which should provide more clues as to what's going on. You could post it here, and I can look and see if anything stands out to me. |
I also have the same issue for the last 5 days. No firewall, API status fine and downgrading to 1.00.099 and 1.00.100 produces the same result ("Cannot access online database"). This is the error log CV Scraper Version: 1.0.101
|
Can you confirm that this is this still happening for you? If so, I might have an idea what's causing it, this problem here, but that's something I'll have to fix on the code in my end. |
Yes, still unable to reach the comic vine database. |
I'll experiment with it when I have a chance, and see if I can fix it. |
I spent some time looking into this bug (and trying to duplicate it so that I could fix it), and I'm having a very hard time getting it to happen. My original thought about what was going wrong was incorrect so I'm running low on other ideas. The error message you're getting ("System.Net.WebException: The request was aborted: Could not create SSL/TLS secure channel.") is a pretty generic error that happens when your computer cannot connect to the ComicVine servers for almost any reason, so it's not much help. Are you using an very old version of windows, perhaps? MAYBE your PC is somehow stuck on an old version of the .NET framework (.NET is needed to run both ComicRack and the Scraper...but it's supposed to get updated by Windows automatically.) One thing you could try is downloading and installing the ".NET Framework 4.8 runtime" (not the "Developer Pack") from here: https://dotnet.microsoft.com/en-us/download/dotnet-framework/net481 That should at least make sure that you have the latest .NET framework installed, in case you don't. That might have a slim chance of fixing the problem you're experiencing. |
Seems to only fail on Windows 7 (still works fine on 10+) |
This is probably the issue since I am on Windows 8.1 and NET Framework 4.8.1 is not supported in my OS. I guess it's time for me to upgrade. Thank you so much for your answer, I appreciate that. |
Just adding to confirm that the underlying issue is that older Windows versions do not support the cipher suites required by comicvine website. If you go to https://www.ssllabs.com/ssltest/index.html and input comicvine.gamespot.com, you'll see that these are the supported ciphers for TLS 1.2 on the comicvine site: Unfortunately, none of these are natively supported by any Windows versions earlier than Windows 10, which you can confirm here: https://learn.microsoft.com/en-us/windows/win32/secauthn/cipher-suites-in-schannel Even more unfortunately, it doesn't appear possible to manually add cipher suites to the Windows OS; the only way is via Windows updates, which seems unlikely at this point given how old v8.1 and v7 are now. From what I can tell, .NET just relies on whatever is provided by the Schannel SSP, so upgrading the .NET framework won't help. Connecting to the website on older Windows versions is possible via Chrome, Firefox, etc. because these browsers have their own client and do not rely on Windows Schannel. So, in summary; comicvine recently changed their website to require cipher suites that are not supported in older versions of Windows (earlier than 10), and .NET relies on the OS to provide these ciphers for SSL/TLS connections. I have tried to see if using native python to make the connection to comicvine might be possible (which is easy to do in vanilla python), but so far no luck, as ComicRack uses IronPython, which doesn't seem to use an up-to-date version of OpenSSL and thus does not have the necessary cipher suites. Maybe someone more versed in the details of IronPython / ComicRack can think of a possible solution. |
@giotte : thanks very much for your research and insight here. I agree with everything you've found, it does appear that ComicRack (Gamespot) has "hardened" their servers to require only the latest TLS 1.2 ciphers, which are not installed on windows 7 or 8. The Comic Vine Scraper uses Ironpython, which in turn uses .NET, which in turn uses Windows OS to obtain the ciphers it can use, so I'm pretty sure the only way to solve the problem would be to somehow get those newer ciphers onto an old versions of Windows. I googled around a bit looking for any way to do this, but I couldn't find one. Unfortunately, that pretty much means that users of Windows 7/8 will need to upgrade to at least Windows 10 (as you suggested) in order to keep using Comic Vine Scraper. I will leave this ticket open for a while for further discussion, especially if anyone out there knows a way to get .NET to use these ciphers on Windows 7/8. Barring that, I think there's not much else to be done here. :( |
I found a way to allow Comic Vine Scraper (CVS) on Windows 7/8.1 systems to connect to the Comic Vine website by updating the code to use a third party library instead of the built-in .NET WebRequest. The solution is a bit kludgy and this issue probably only affects a small number of users, so I'm not suggesting that CVS be updated. I'm just sharing this in case it's useful to anyone. I've tested this on Windows 7 SP1 x64 and Windows 8.1 x64 using ComicRack v0.0.178 64bit and CVS 1.0.101, but obviously no guarantees here and your mileage may vary, etc. 1. Obtain the CurlThin binaries and place the files in a folder called "CurlThin" and place that folder in the same directory as CVS 2. Update cvdb.py so that _query_image uses CurlThin to connect to ComicVine 3. Update utils.py so that get_html_string uses CurlThin to connect to ComicVine 4. Update cvconnection.py by doing a find and replace for all instances of "http://" to "https://" That's it. Just happy that I can continue to use Comic Vine Scraper without needing to upgrade the entire OS! |
This is great, thanks a lot @giotte! When I have some time (and that may be a while), I'll take a closer look at what you have and see if I can create a new version of the scraper that uses CurlThin to support older versions of Windows. |
Just tried @giotte 's solution. My directory is somewhere different, I tried various combinations of moving the files around, or changing the paths in the two Python files, both relative and absolute. I first get a "file does not exist: PATHTOTTHEFILEFROMTHEPYFILE" error, then "'ScopeStorage' object has no attribute 'cvs_scrape'" on subsequent files until the next restart of the application. |
Such a problem has already occurred; it was solved with updates. Can anyone suggest what to do?
The text was updated successfully, but these errors were encountered: