I have a program that uses C# HttpWebRequest to obtain metadata via the API. This code has been working fine for years on my Win10 PC. I transfer the identical program files to my new Win11 PC and it is timing out on API calls. No info except it's a web timeout exception.
If I grab the URL being used for these calls and plug it into the address of my Edge browser on the Win11 PC, it responds with the desired response instantly!
I'm stumped on this. Do web calls to TMdB require some kind of authorization or certificate (other than the API key, which is contained in the URL), and maybe the Win11 machine is missing the certificate or something?
The Win11 PC is on WiFi internet while the Win10 PC is on a wired (Ethernet) connection. But the Win11 internet tests at 200/200 and everything else that accesses the web works fine on it.
Any ideas would be appreciated, and TIA!
Can't find a movie or TV show? Login to create it.
Want to rate or add this item to a list?
Not a member?
Reply by superboy97
on November 22, 2023 at 3:19 AM
A firewall on the Win11 OC may eventually block the query coming from your application.
Reply by David Flannery
on November 22, 2023 at 4:49 AM
Thanks, hadn’t thought of that. Not sure what “Win11 OC” means.(?) Also, any tips on how to configure the firewall to avoid this problem? Or how to tell for sure that is the problem?
Reply by superboy97
on November 22, 2023 at 4:54 AM
This is a typo. That just mean "Win11 PC".
The trafic from and to your application should be allowed to go through the firewall.
You can try to disable it completely for a check. Don't forget to re-enable it.
Reply by David Flannery
on November 22, 2023 at 5:53 AM
That was it, but really bizarre is that after turning the firewall back on, and _not _having allowed access to the program, the blocking no longer occurs. (??)