Failed to fetch resource: https://api4.thetvdb.com/v4/search: Network Connection Error: Connection reset by peer

Support for Windows users
Post Reply
User avatar
dectentoo
Posts: 2
Joined: 16 Nov 2024, 12:44

Failed to fetch resource: https://api4.thetvdb.com/v4/search: Network Connection Error: Connection reset by peer

Post by dectentoo »

Hi

Recently, when trying to match any video file, I am getting this error when trying to match a file on windows.

Code: Select all

Failed to fetch resource: https://api4.thetvdb.com/v4/search: Network Connection Error: Connection reset by peer
As part of my troubleshooting I have:

deinstalled and reinstalled from the store
turned off firewall (kaspersky)
I am not using a vpn

I have used the server version on my synology and that works fine, so this does point to a local machine error. I wonder if anyone has a suggestion as to what other options I have, and any other areas to look at to troubleshoot?
--
Richard

---
I'm on the latest windows release Version 10.0.26100 Build 26100

Console Output: Select all

FileBot 5.1.6 (r10435)
JNA Native: 7.0.0
MediaInfo: 24.06
7-Zip-JBinding: 16.02
Tools: fpcalc/1.5.0
Extended Attributes: OK
Unicode Filesystem: OK
Script Bundle: 2024-10-16 (r986)
Groovy: 4.0.21
JRE: OpenJDK Runtime Environment 21.0.3
JVM: OpenJDK 64-Bit Server VM
CPU/MEM: 16 Core / 8 GB Max Memory / 108 MB Used Memory
OS: Windows 11 (amd64)
STORAGE: NTFS [Games] @ 446 GB | NTFS [User] @ 870 GB | NTFS [Books] @ 4.4 TB | NTFS [Working] @ 116 GB | NTFS [Games] @ 65 GB | NTFS [Files] @ 1.7 TB | NTFS [PC Backup] @ 4.6 TB | NTFS [music] @ 2.5 TB | NTFS [photo] @ 2.5 TB | NTFS [FileBot] @ 2.5 TB | NTFS [home] @ 2.5 TB | NTFS [video] @ 3.2 TB | NTFS [video2] @ 2.5 TB
Package: APPX
License: Microsoft Store License

Console Output: Select all

Nov 16, 2024 11:42:21 AM net.filebot.CachedResource retry
WARNING: Fetch failed: Try again in 2 seconds (2 more) => java.net.SocketException: Connection reset by peer
Nov 16, 2024 11:42:23 AM net.filebot.CachedResource retry
WARNING: Fetch failed: Try again in 8 seconds (1 more) => java.net.SocketException: Connection reset by peer
Nov 16, 2024 11:42:31 AM net.filebot.CachedResource lambda$get$1
SEVERE: Failed to fetch resource: https://api4.thetvdb.com/v4/search: Network Connection Error: Connection reset by peer
Nov 16, 2024 11:42:31 AM net.filebot.ui.rename.RenamePanel$AutoCompleteAction lambda$start$7
WARNING: Network Connection Error: Connection reset by peer
java.util.concurrent.ExecutionException: java.util.concurrent.ExecutionException: java.net.SocketException: Connection reset by peer
	at net.filebot.util.ui.SwingUI$SwingLambda.done(Unknown Source)
Caused by: java.util.concurrent.ExecutionException: java.net.SocketException: Connection reset by peer
	at net.filebot.Parallelism.map(Unknown Source)
	at net.filebot.ui.rename.EpisodeListMatcher.matchVideoFiles(Unknown Source)
	at net.filebot.ui.rename.EpisodeListMatcher.match(Unknown Source)
	at net.filebot.ui.rename.RenamePanel$AutoCompleteAction.lambda$start$3(Unknown Source)
	at net.filebot.util.ui.SwingUI$SwingLambda.doInBackground(Unknown Source)
Caused by: java.net.SocketException: Connection reset by peer
	at net.filebot.web.WebRequest.notModified(Unknown Source)
	at net.filebot.web.WebRequest.checkErrorCode(Unknown Source)
	at net.filebot.web.WebRequest.httpGetV1(Unknown Source)
	at net.filebot.web.WebRequest.fetch(Unknown Source)
	at net.filebot.CachedResource.lambda$fetchIfModified$14(Unknown Source)
	at net.filebot.CachedResource.lambda$get$0(Unknown Source)
	at net.filebot.CachedResource.retry(Unknown Source)
	at net.filebot.CachedResource.retry(Unknown Source)
	at net.filebot.CachedResource.retry(Unknown Source)
	at net.filebot.CachedResource.lambda$get$1(Unknown Source)
	at net.filebot.Cache.computeIf(Unknown Source)
	at net.filebot.Cache$ConcurrentCache.lambda$computeIf$1(Unknown Source)
	at net.filebot.Cache$ConcurrentCache.withLock(Unknown Source)
	at net.filebot.Cache$ConcurrentCache.computeIf(Unknown Source)
	at net.filebot.CachedResource.get(Unknown Source)
	at net.filebot.web.TheTVDBClientV4.requestJson(Unknown Source)
	at net.filebot.web.TheTVDBClientV4.fetchSearchResult(Unknown Source)
	at net.filebot.web.TheTVDBClientV4.fetchSearchResult(Unknown Source)
	at net.filebot.WebServices$TheTVDBClientV4.fetchSearchResult(Unknown Source)
	at net.filebot.web.AbstractEpisodeListProvider.lambda$search$0(Unknown Source)
	at net.filebot.Cache.computeIf(Unknown Source)
	at net.filebot.Cache$TypedCache.computeIf(Unknown Source)
	at net.filebot.Cache.computeIfAbsent(Unknown Source)
	at net.filebot.Cache$TypedCache.computeIfAbsent(Unknown Source)
	at net.filebot.web.AbstractEpisodeListProvider.search(Unknown Source)
	at net.filebot.ui.rename.EpisodeListMatcher.lookupSeries(Unknown Source)
	at net.filebot.ui.rename.EpisodeListMatcher.fetchEpisodeSet(Unknown Source)
	at net.filebot.ui.rename.EpisodeListMatcher.matchEpisodeSet(Unknown Source)
	at net.filebot.ui.rename.EpisodeListMatcher.lambda$matchVideoFiles$7(Unknown Source)
	at net.filebot.Parallelism$Task.call(Unknown Source)
	at net.filebot.Parallelism$Task.call(Unknown Source)
---
Richard
User avatar
rednoah
The Source
Posts: 23922
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Failed to fetch resource: https://api4.thetvdb.com/v4/search: Network Connection Error: Connection reset by peer

Post by rednoah »

Connection reset by peer indicates a generic underlying network issue. FileBot cannot connect to some server. There's nothing FileBot can do about that. You'll have to ask a network export or ISP support staff for more specific debug advice.


:arrow: If the issue is specific to api4.thetvdb.com then you could try using TheMovieDB instead.


:arrow: I'd start by trying a different internet access point, e.g. mobile phone tethering, VPN, friends wifi, public wifi at a cafe, etc. That will at least help you narrow down if it's an issue with your current internet access point, or a firewall issue specific to your machine.
:idea: Please read the FAQ and How to Request Help.
User avatar
dectentoo
Posts: 2
Joined: 16 Nov 2024, 12:44

Re: Failed to fetch resource: https://api4.thetvdb.com/v4/search: Network Connection Error: Connection reset by peer

Post by dectentoo »

Thanks. It's definitely a local issue and obviously a problem with the MS store version. I've used the portable app version and that works. Ah, windows, how I hate thee. :D
---
Richard
User avatar
rednoah
The Source
Posts: 23922
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Failed to fetch resource: https://api4.thetvdb.com/v4/search: Network Connection Error: Connection reset by peer

Post by rednoah »

dectentoo wrote: 18 Nov 2024, 09:44 It's definitely a local issue and obviously a problem with the MS store version. I've used the portable app version and that works.
If that makes a difference then you could try a bit of trial & error testing with different network settings.


e.g. force IPv4 network protocol:

Properties: Select all

java.net.preferIPv4Stack=true

e.g. force HTTP/2 network stack:

Properties: Select all

net.filebot.web.WebRequest.v1=false
NOTE: Microsoft Store Edition of FileBot uses net.filebot.web.WebRequest.v1=true by default (as a workaround for HTTP/2 network stack not working for some users for unknown reasons)
:idea: Please read the FAQ and How to Request Help.
Post Reply